Commit 2935e071 authored by Sebastien Robin's avatar Sebastien Robin

getting uid directly is dangerous because we can get

through acquisition a parent object uid

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42553 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 08493ce6
...@@ -70,7 +70,7 @@ class IndexableObjectWrapper(object): ...@@ -70,7 +70,7 @@ class IndexableObjectWrapper(object):
return getattr(self.__ob, name) return getattr(self.__ob, name)
# We need to update the uid during the cataloging process # We need to update the uid during the cataloging process
uid = property(lambda self: self.__ob.uid, uid = property(lambda self: self.__ob.getUid(),
lambda self, value: setattr(self.__ob, 'uid', value)) lambda self, value: setattr(self.__ob, 'uid', value))
def _getSecurityParameterList(self): def _getSecurityParameterList(self):
......
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