Commit 0cb6d676 authored by Nicolas Dumazet's avatar Nicolas Dumazet

specify an id to avoid duplicates


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41181 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e746495b
......@@ -70,7 +70,9 @@ class TempObjectLibrary(object):
container = self(random.choice(possible_parent_list))
else:
container = self.root
temp_object = container.newContent(portal_type=portal_type, temp_object=1)
temp_object = container.newContent(portal_type=portal_type,
id=portal_type,
temp_object=1)
self.portal_type_dict[portal_type] = temp_object
return temp_object
......
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