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

* call _aq_reset when reimporting

* don't copy the signature of wl_lockmapping, just pass through arguments


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34352 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 72d08a1f
......@@ -184,11 +184,9 @@ if allowClassTool():
# replace it by a method that delegates to portal classes
return self._folder.write(self.getId(), data, create=False)
def wl_lockmapping(self, killinvalids=0, create=0):
def wl_lockmapping(self, *args, **kw):
# We store web dav locks on portal classes itself
return self.aq_parent.aq_parent.wl_lockmapping(
killinvalids=killinvalids,
create=create)
return self.aq_parent.aq_parent.wl_lockmapping(*args, **kw)
InitializeClass(FileProxy)
......@@ -220,6 +218,7 @@ if allowClassTool():
def reimport(self, status, class_id):
if status and self.__importer is not None:
self.__importer(class_id)
_aq_reset()
def _getOb(self, key, default=_MARKER ):
if key in self.objectIds():
......
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