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

fix list method returning duplicate uids

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