[Erp5-report] r14255 - in /erp5/trunk/bt5/erp5_base: WorkflowTemplateItem/portal_workflow/c...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 26 20:34:14 CEST 2007


Author: seb
Date: Thu Apr 26 20:34:09 2007
New Revision: 14255

URL: http://svn.erp5.org?rev=14255&view=rev
Log:
make sure to also update currency exchange line predicate information if required

Modified:
    erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/currency_exchange_line_interaction_workflow/scripts/CurrencyExchangeLine_updateMatrix.xml
    erp5/trunk/bt5/erp5_base/bt/revision

Modified: erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/currency_exchange_line_interaction_workflow/scripts/CurrencyExchangeLine_updateMatrix.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/currency_exchange_line_interaction_workflow/scripts/CurrencyExchangeLine_updateMatrix.xml?rev=14255&r1=14254&r2=14255&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/currency_exchange_line_interaction_workflow/scripts/CurrencyExchangeLine_updateMatrix.xml (original)
+++ erp5/trunk/bt5/erp5_base/WorkflowTemplateItem/portal_workflow/currency_exchange_line_interaction_workflow/scripts/CurrencyExchangeLine_updateMatrix.xml Thu Apr 26 20:34:09 2007
@@ -76,7 +76,13 @@
 \n
 context.updateCellRange(script_id=\'CurrencyExchangeLine_asCellRange\', base_id=base_id)\n
 cell_range_key_list = context.getCellRangeKeyList(base_id = base_id)\n
-\n
+resource_list = [\'resource/%s\' % context.getParent().getRelativeUrl()]\n
+price_currency_list = [\'price_currency/%s\' % context.getPriceCurrency()]\n
+membership_list = resource_list+price_currency_list\n
+context.setMembershipCriterionBaseCategoryList([x.split(\'/\')[0] for x in membership_list])\n
+context.setMembershipCriterionCategoryList(membership_list)\n
+context.setResource(context.getParentValue().getRelativeUrl())\n
+context.setMappedValuePropertyList((\'base_price\',\'discount\'))\n
 if cell_range_key_list != [[None, None]] :\n
   i = 0\n
   for k in cell_range_key_list:\n
@@ -138,18 +144,21 @@
                             <string>base_id</string>
                             <string>kwd</string>
                             <string>cell_range_key_list</string>
+                            <string>resource_list</string>
+                            <string>price_currency_list</string>
+                            <string>membership_list</string>
+                            <string>append</string>
+                            <string>$append0</string>
+                            <string>_getiter_</string>
+                            <string>x</string>
+                            <string>_getitem_</string>
                             <string>None</string>
                             <string>i</string>
-                            <string>_getiter_</string>
                             <string>k</string>
                             <string>filter</string>
                             <string>category_list</string>
                             <string>_apply_</string>
                             <string>c</string>
-                            <string>append</string>
-                            <string>$append0</string>
-                            <string>x</string>
-                            <string>_getitem_</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/erp5_base/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/bt/revision?rev=14255&r1=14254&r2=14255&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/bt/revision (original)
+++ erp5/trunk/bt5/erp5_base/bt/revision Thu Apr 26 20:34:09 2007
@@ -1,1 +1,1 @@
-107
+108




More information about the Erp5-report mailing list