[Erp5-report] r19167 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 8 12:57:54 CET 2008


Author: vincent
Date: Fri Feb  8 12:57:52 2008
New Revision: 19167

URL: http://svn.erp5.org?rev=19167&view=rev
Log:
Add compatibility code to allow upgrading a versoin of erp5_core which does not contain Base_updateListboxSelection after upgrading erp5_xhtml_style.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doDialog.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doJump.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml?rev=19167&r1=19166&r2=19167&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doAction.xml Fri Feb  8 12:57:52 2008
@@ -71,7 +71,11 @@
 request = context.REQUEST\n
 \n
 # prevent lose checked itens after click to print\n
-context.Base_updateListboxSelection()\n
+# For backward compatibility, do nothing if\n
+# Base_updateListboxSelection cannot be found.\n
+Base_updateListboxSelection = getattr(context, \'Base_updateListboxSelection\', None)\n
+if Base_updateListboxSelection is not None:\n
+  Base_updateListboxSelection()\n
 \n
 Base_doAction = select_action.split()\n
 if len(Base_doAction) == 0:\n
@@ -178,6 +182,9 @@
                             <string>N_</string>
                             <string>preserved_parameters</string>
                             <string>request</string>
+                            <string>getattr</string>
+                            <string>None</string>
+                            <string>Base_updateListboxSelection</string>
                             <string>Base_doAction</string>
                             <string>len</string>
                             <string>_getitem_</string>
@@ -189,7 +196,6 @@
                             <string>type_name</string>
                             <string>str</string>
                             <string>new_content</string>
-                            <string>None</string>
                             <string>template_relative_url</string>
                             <string>template</string>
                             <string>preference</string>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doDialog.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doDialog.xml?rev=19167&r1=19166&r2=19167&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doDialog.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doDialog.xml Fri Feb  8 12:57:52 2008
@@ -66,7 +66,11 @@
         <item>
             <key> <string>_body</string> </key>
             <value> <string># prevent lose checked itens at listbox after click to print\n
-context.Base_updateListboxSelection()\n
+# For backward compatibility, do nothing if\n
+# Base_updateListboxSelection cannot be found.\n
+Base_updateListboxSelection = getattr(context, \'Base_updateListboxSelection\', None)\n
+if Base_updateListboxSelection is not None:\n
+  Base_updateListboxSelection()\n
 \n
 kw.update(context.REQUEST.form)\n
 return context.ERP5Site_redirect(select_dialog.split()[0], keep_items={\'dialog_category\': dialog_category, \'form_id\': form_id, \'cancel_url\': cancel_url}, **kw)\n
@@ -123,8 +127,11 @@
                             <string>form_id</string>
                             <string>cancel_url</string>
                             <string>kw</string>
+                            <string>getattr</string>
+                            <string>context</string>
+                            <string>None</string>
+                            <string>Base_updateListboxSelection</string>
                             <string>_getattr_</string>
-                            <string>context</string>
                             <string>_apply_</string>
                             <string>_getitem_</string>
                           </tuple>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doJump.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doJump.xml?rev=19167&r1=19166&r2=19167&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doJump.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doJump.xml Fri Feb  8 12:57:52 2008
@@ -66,7 +66,11 @@
         <item>
             <key> <string>_body</string> </key>
             <value> <string># prevent lose checked itens after click to print\n
-context.Base_updateListboxSelection()\n
+# For backward compatibility, do nothing if\n
+# Base_updateListboxSelection cannot be found.\n
+Base_updateListboxSelection = getattr(context, \'Base_updateListboxSelection\', None)\n
+if Base_updateListboxSelection is not None:\n
+  Base_updateListboxSelection()\n
 \n
 if select_jump == \'\':\n
   return\n
@@ -124,8 +128,11 @@
                           <tuple>
                             <string>select_jump</string>
                             <string>kw</string>
+                            <string>getattr</string>
+                            <string>context</string>
+                            <string>None</string>
+                            <string>Base_updateListboxSelection</string>
                             <string>_getattr_</string>
-                            <string>context</string>
                             <string>container</string>
                             <string>request</string>
                             <string>_apply_</string>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=19167&r1=19166&r2=19167&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Fri Feb  8 12:57:52 2008
@@ -1,1 +1,1 @@
-489
+490




More information about the Erp5-report mailing list