Commit d41aa370 authored by Jérome Perrin's avatar Jérome Perrin

When we just need a random tag, we don't neet to use...

When we just need a random tag, we don't neet to use portal_ids.generateNewLongId, but simply random.randint 



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14035 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6cf099d9
......@@ -99,7 +99,7 @@ if len(object_list) >= 1000:\n
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 @@ return context.REQUEST.RESPONSE.redirect(\n
<string>object_list</string>
<string>dict</string>
<string>len</string>
<string>random</string>
<string>tag</string>
<string>activated</string>
<string>obj</string>
......
243
\ No newline at end of file
244
\ No newline at end of file
......@@ -108,7 +108,7 @@ if len_selection_list == context.countFolder():\n
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 @@ return request.RESPONSE.redirect( redirect_url )\n
<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>
......
291
\ No newline at end of file
292
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment