[Erp5-report] r15164 - /erp5/trunk/products/ERP5Type/Base.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jul 6 16:14:27 CEST 2007


Author: vincent
Date: Fri Jul  6 16:14:26 2007
New Revision: 15164

URL: http://svn.erp5.org?rev=15164&view=rev
Log:
Accessors must always get the property on aq_base objects to prevent being "poluted" by acquisition.

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=15164&r1=15163&r2=15164&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Base.py Fri Jul  6 16:14:26 2007
@@ -2978,7 +2978,7 @@
     """
       Returns the title of this document
     """
-    return getattr(self, 'title', None)
+    return getattr(aq_base(self), 'title', None)
 
   security.declarePublic('setProperty')
 




More information about the Erp5-report mailing list