[Erp5-report] r30751 - /erp5/trunk/products/ERP5Type/Accessor/Interface.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Nov 18 19:00:22 CET 2009
Author: seb
Date: Wed Nov 18 19:00:21 2009
New Revision: 30751
URL: http://svn.erp5.org?rev=30751&view=rev
Log:
do not store value on the getter instance, we do not have
an instance per portal type. Probably the best way to
cache the value would be to have one getter instance per
portal type
Modified:
erp5/trunk/products/ERP5Type/Accessor/Interface.py
Modified: erp5/trunk/products/ERP5Type/Accessor/Interface.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Accessor/Interface.py?rev=30751&r1=30750&r2=30751&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Accessor/Interface.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Accessor/Interface.py [utf8] Wed Nov 18 19:00:21 2009
@@ -54,9 +54,4 @@
self._key = key
def __call__(self, instance):
- value = self._value
- if value is None:
- # Store the value for performance
- value = instance.provides(self._key)
- self._value = value
- return value
+ return instance.provides(self._key)
More information about the Erp5-report
mailing list