[Erp5-report] r38853 jm - /erp5/trunk/products/ERP5Type/Base.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Oct 2 22:32:35 CEST 2010
Author: jm
Date: Sat Oct 2 22:32:33 2010
New Revision: 38853
URL: http://svn.erp5.org?rev=38853&view=rev
Log:
Fix _aq_dynamic for composed documents
Modified:
erp5/trunk/products/ERP5Type/Base.py
Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=38853&r1=38852&r2=38853&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Base.py [utf8] Sat Oct 2 22:32:33 2010
@@ -898,9 +898,10 @@ class Base( CopyContainer,
Base.aq_method_generating.append(aq_key)
try:
# Proceed with property generation
- if self.isTempObject():
- # If self is a temporary object, generate methods for the base
- # document class rather than for the temporary document class.
+ if self.isTempObject() and len(klass.__bases__) == 1:
+ # If self is a simple temporary object (e.g. not a composed one),
+ # generate methods for the base document class rather than for the
+ # temporary document class.
# Otherwise, instances of the base document class would fail
# in calling such methods, because they are not instances of
# the temporary document class.
More information about the Erp5-report
mailing list