From 9bce784acd43f728644b07ff750ec46f274fedb3 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Fri, 18 Jun 2004 15:14:18 +0000
Subject: [PATCH] script called by the print button, used in order to update
 checked_uids

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1045 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/skins/erp5_core/folder_print.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100755 product/ERP5/skins/erp5_core/folder_print.py

diff --git a/product/ERP5/skins/erp5_core/folder_print.py b/product/ERP5/skins/erp5_core/folder_print.py
new file mode 100755
index 0000000000..00d92a3375
--- /dev/null
+++ b/product/ERP5/skins/erp5_core/folder_print.py
@@ -0,0 +1,11 @@
+##parameters=selection_name='',form_id='',uids=[],listbox_uid=[]
+
+request = context.REQUEST
+
+list_actions = context.portal_actions.listFilteredActionsFor(context)
+print_actions = list_actions['object_print']
+url = print_actions[0]['url']
+
+context.portal_selections.updateSelectionCheckedUidList(selection_name,listbox_uid,uids)
+url += '?selection_name=%s&dialog_category=%s&form_id=%s' % (selection_name , 'object_print', form_id) 
+request.RESPONSE.redirect(url)
-- 
2.30.9