[Erp5-report] r9348 - /erp5/trunk/products/ERP5Type/Document/Folder.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Aug 23 13:51:13 CEST 2006
Author: vincent
Date: Wed Aug 23 13:51:10 2006
New Revision: 9348
URL: http://svn.erp5.org?rev=9348&view=rev
Log:
Fix problem found when generating ids inside a WebSite, because of special aq_dynamic function.
Modified:
erp5/trunk/products/ERP5Type/Document/Folder.py
Modified: erp5/trunk/products/ERP5Type/Document/Folder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Document/Folder.py?rev=9348&r1=9347&r2=9348&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Document/Folder.py (original)
+++ erp5/trunk/products/ERP5Type/Document/Folder.py Wed Aug 23 13:51:10 2006
@@ -155,7 +155,7 @@
id_group = self.getIdGroup()
if id_group in (None, 'None'):
id_generator = self.getIdGenerator()
- if isinstance(id_generator, str):
+ if isinstance(id_generator, str) and id_generator != '': # Custom aq_dynamic function (like the one defined on WebSite objects) can find an object which has no name. So we must recognise the default value of id_generator.
idGenerator = getattr(self, id_generator, None)
if idGenerator is None:
idGenerator = self._generateNextId
More information about the Erp5-report
mailing list