Commit eb6cb53f authored by Jérome Perrin's avatar Jérome Perrin

Comment out this line, 'instance' is not known in accessor's __init__. This

whole class is probably not used.
For now, I just want to stop the NameError error from pyflakes.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19435 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3b279f88
...@@ -81,7 +81,7 @@ class Dummy(Reindex): ...@@ -81,7 +81,7 @@ class Dummy(Reindex):
self._id = id self._id = id
self.__name__ = id self.__name__ = id
self._accessor_id = accessor_id self._accessor_id = accessor_id
self.func_code = getattr(instance, self._accessor_id).func_code # self.func_code = getattr(instance, self._accessor_id).func_code
def __call__(self, instance, *args, **kw): def __call__(self, instance, *args, **kw):
method = getattr(instance, self._accessor_id) method = getattr(instance, self._accessor_id)
......
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