[Erp5-report] r14035 - in /erp5/trunk: bt5/erp5_accounting/SkinTemplateItem/portal_skins/er...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 10 16:29:20 CEST 2007


Author: jerome
Date: Tue Apr 10 16:29:17 2007
New Revision: 14035

URL: http://svn.erp5.org?rev=14035&view=rev
Log:
When we just need a random tag, we don't neet to use portal_ids.generateNewLongId, but simply random.randint 


Modified:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml?rev=14035&r1=14034&r2=14035&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_createRelatedPaymentTransactionList.xml Tue Apr 10 16:29:17 2007
@@ -99,7 +99,7 @@
         context.absolute_url(), N_(\n
          \'Refusing to process more than 1000 objects, check your selection\')))\n
 \n
-tag = \'payment_creation_%s\' % portal.portal_ids.generateNewLongId()\n
+tag = \'payment_creation_%s\' % random.randint(0, 1000)\n
 activated = 0\n
 for obj in object_list:\n
   if obj.portal_type in invoice_type_list:\n
@@ -200,6 +200,7 @@
                             <string>object_list</string>
                             <string>dict</string>
                             <string>len</string>
+                            <string>random</string>
                             <string>tag</string>
                             <string>activated</string>
                             <string>obj</string>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=14035&r1=14034&r2=14035&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Tue Apr 10 16:29:17 2007
@@ -1,1 +1,1 @@
-243
+244

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml?rev=14035&r1=14034&r2=14035&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Folder_modifyWorkflowStatus.xml Tue Apr 10 16:29:17 2007
@@ -108,7 +108,7 @@
   value_error = N_("Refusing to process the entire module")\n
 else:\n
   # generate a random tag\n
-  tag = \'folder_workflow_action_%s\' % portal.portal_ids.generateNewLongId()\n
+  tag = \'folder_workflow_action_%s\' % random.randint(0, 1000)\n
 \n
   processed_object_count = 0    \n
   for o in selection_list:\n
@@ -219,6 +219,7 @@
                             <string>len</string>
                             <string>len_selection_list</string>
                             <string>value_error</string>
+                            <string>random</string>
                             <string>tag</string>
                             <string>processed_object_count</string>
                             <string>o</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=14035&r1=14034&r2=14035&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Tue Apr 10 16:29:17 2007
@@ -1,1 +1,1 @@
-291
+292




More information about the Erp5-report mailing list