[Erp5-report] r15537 - /erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/porta...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Aug 7 18:18:30 CEST 2007
Author: yusei
Date: Tue Aug 7 18:18:30 2007
New Revision: 15537
URL: http://svn.erp5.org?rev=15537&view=rev
Log:
2007-08-07 yusei
Move ListBox edit code from Base_edit to ERP5Form.ListBox module.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml?rev=15537&r1=15536&r2=15537&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml Tue Aug 7 18:18:30 2007
@@ -107,19 +107,6 @@
value(request)\n
return form(request)\n
\n
-def editListBox(listbox_field, listbox):\n
- """ Function called to edit a listbox\n
- """\n
- if listbox is not None:\n
- gv = {}\n
- if listbox_field.has_value(\'global_attributes\'):\n
- hidden_attributes = map(lambda x:x[0], listbox_field.get_value(\'global_attributes\'))\n
- for k in hidden_attributes:\n
- gv[k] = getattr(request, k, None)\n
- for url, v in listbox.items():\n
- v.update(gv)\n
- context.restrictedTraverse(url).edit(**v)\n
-\n
def editMatrixBox(matrixbox_field, matrixbox):\n
""" Function called to edit a Matrix box\n
"""\n
@@ -225,9 +212,7 @@
# then we edit them\n
for field in form.get_fields():\n
parseField(field)\n
- if(field.meta_type == \'ListBox\'):\n
- editListBox(field, request.get(field.id))\n
- elif(field.meta_type == \'MatrixBox\'):\n
+ if(field.meta_type == \'MatrixBox\'):\n
editMatrixBox(field, request.get(field.id))\n
\n
# Maybe we should build a list of objects we need\n
@@ -330,7 +315,6 @@
<string>field_id</string>
<string>value</string>
<string>callable</string>
- <string>editListBox</string>
<string>editMatrixBox</string>
<string>MARKER</string>
<string>kw</string>
More information about the Erp5-report
mailing list