From 7c2e1a8babe31f83f8095050979891e1287e9f34 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Mon, 29 Mar 2004 21:25:11 +0000
Subject: [PATCH] first submission

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

diff --git a/product/ERP5/skins/erp5_core/Base_updateDialogForm.py b/product/ERP5/skins/erp5_core/Base_updateDialogForm.py
new file mode 100755
index 0000000000..081f4a1b66
--- /dev/null
+++ b/product/ERP5/skins/erp5_core/Base_updateDialogForm.py
@@ -0,0 +1,19 @@
+##parameters=**kw
+
+from string import zfill
+request = context.REQUEST
+
+for k in kw.keys():
+  v = kw[k]
+  listbox = {}
+  if k == 'listbox_lines':
+    i = 1
+    for line in v:
+      #key = '_%s' % zfill(i,3)
+      key = '_%s' % line['listbox_key']
+      listbox[key] = line
+      i+=1
+    request.set('listbox',listbox)
+  else:
+    request.set('my_%s' % k, v)
+
-- 
2.30.9