[Erp5-report] r23972 - /erp5/trunk/products/ERP5Type/Base.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Oct 2 13:51:06 CEST 2008
Author: jerome
Date: Thu Oct 2 13:51:00 2008
New Revision: 23972
URL: http://svn.erp5.org?rev=23972&view=rev
Log:
use getattr on aq_base to prevent acquisition (and not to use hasattr)
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=23972&r1=23971&r2=23972&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Base.py Thu Oct 2 13:51:00 2008
@@ -3115,7 +3115,7 @@
if len(history):
# Then get the first line of edit_workflow
return history[0].get('time', None)
- if hasattr(self, 'CreationDate') :
+ if getattr(aq_base(self), 'CreationDate', None) is not None:
return asDate(self.CreationDate())
return None
More information about the Erp5-report
mailing list