Commit 5f56f9d5 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Ensure to give an integer to xrange.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43263 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cb6be0fd
...@@ -213,7 +213,7 @@ else:\n ...@@ -213,7 +213,7 @@ else:\n
\n \n
unique_per_account = resource.isUniquePerAccount()\n unique_per_account = resource.isUniquePerAccount()\n
aggregate_list = []\n aggregate_list = []\n
for i in xrange(quantity):\n for i in xrange(int(quantity)):\n
if create == 1:\n if create == 1:\n
item = module.newContent(activate_kw={\'tag\': tag, \'priority\':4})\n item = module.newContent(activate_kw={\'tag\': tag, \'priority\':4})\n
context.log(\'New Item created with Id\', item.getId())\n context.log(\'New Item created with Id\', item.getId())\n
......
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