Commit 7b7a8c2d authored by Nicolas Dumazet's avatar Nicolas Dumazet

simply raising an Error on None/'' ids do not help, the problem

is more complex than that. Revert for now.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41182 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0cb6d676
...@@ -346,8 +346,6 @@ class ERP5TypeInformation(XMLObject, ...@@ -346,8 +346,6 @@ class ERP5TypeInformation(XMLObject,
ob = klass(id) ob = klass(id)
if temp_object: if temp_object:
if id in (None, ''):
raise ValueError("invalid object id")
ob = ob.__of__(container) ob = ob.__of__(container)
for ignore in ('activate_kw', 'is_indexable', 'reindex_kw'): for ignore in ('activate_kw', 'is_indexable', 'reindex_kw'):
kw.pop(ignore, None) kw.pop(ignore, None)
......
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