Commit 1f17acd6 authored by Sebastien Robin's avatar Sebastien Robin

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

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30751 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 10beea87
......@@ -54,9 +54,4 @@ class Getter(Accessor):
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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment