Commit 386b0e6b authored by Jérome Perrin's avatar Jérome Perrin

fix list method returning duplicate uids

parent e046d8f5
...@@ -51,11 +51,16 @@ ...@@ -51,11 +51,16 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>from Products.PythonScripts.standard import Object\n <value> <string>from Products.PythonScripts.standard import Object\n
\n
def makeObject(uid):\n
def getUid():\n
return uid\n
return Object(uid=uid, getUid=getUid)\n
\n
object_list = []\n object_list = []\n
for i in range(3):\n for i in range(3):\n
object_list.append(\n object_list.append(makeObject(\'new_%s\' % i))\n
Object(uid=\'new_%s\' % i,\n \n
getUid = lambda: \'new_%s\' % i))\n
return object_list\n return object_list\n
</string> </value> </string> </value>
</item> </item>
......
710 711
\ No newline at end of file \ 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