[Erp5-report] r24521 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Nov 7 12:05:16 CET 2008
Author: jerome
Date: Fri Nov 7 12:05:15 2008
New Revision: 24521
URL: http://svn.erp5.org?rev=24521&view=rev
Log:
restore backward compatibility code similar to 24493
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installBusinessTemplateListAction.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installBusinessTemplateListAction.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installBusinessTemplateListAction.xml?rev=24521&r1=24520&r2=24521&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installBusinessTemplateListAction.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/TemplateTool_installBusinessTemplateListAction.xml [utf8] Fri Nov 7 12:05:15 2008
@@ -61,6 +61,10 @@
bt_dict = {}\n
object_to_update = {}\n
for item in listbox:\n
+ # backward compatibility\n
+ if not same_type(item[\'choice\'], []):\n
+ item[\'choice\'] = [item[\'choice\']]\n
+\n
if item[\'choice\']:\n
choice = item[\'choice\'][0]\n
else:\n
@@ -132,11 +136,12 @@
<string>object_to_update</string>
<string>_getiter_</string>
<string>item</string>
+ <string>same_type</string>
<string>_getitem_</string>
+ <string>_write_</string>
<string>choice</string>
<string>bt_id</string>
<string>object_id</string>
- <string>_write_</string>
<string>dict</string>
<string>bt_title_list</string>
<string>object_list</string>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=24521&r1=24520&r2=24521&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Fri Nov 7 12:05:15 2008
@@ -1,1 +1,1 @@
-1013
+1016
More information about the Erp5-report
mailing list