[Erp5-report] r41182 nicolas.dumazet - /erp5/trunk/products/ERP5Type/ERP5Type.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Dec 7 03:44:06 CET 2010
Author: nicolas.dumazet
Date: Tue Dec 7 03:44:05 2010
New Revision: 41182
URL: http://svn.erp5.org?rev=41182&view=rev
Log:
simply raising an Error on None/'' ids do not help, the problem
is more complex than that. Revert for now.
Modified:
erp5/trunk/products/ERP5Type/ERP5Type.py
Modified: erp5/trunk/products/ERP5Type/ERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ERP5Type.py?rev=41182&r1=41181&r2=41182&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] Tue Dec 7 03:44:05 2010
@@ -346,8 +346,6 @@ class ERP5TypeInformation(XMLObject,
ob = klass(id)
if temp_object:
- if id in (None, ''):
- raise ValueError("invalid object id")
ob = ob.__of__(container)
for ignore in ('activate_kw', 'is_indexable', 'reindex_kw'):
kw.pop(ignore, None)
More information about the Erp5-report
mailing list