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

wl_clearLocks leaves a _dav_writelocks PersistentMapping, we have to remove it...

wl_clearLocks leaves a _dav_writelocks PersistentMapping, we have to remove it before exporting objects



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11300 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67ca3cda
......@@ -385,6 +385,8 @@ class BaseTemplateItem(Implicit, Persistent):
"""
Remove unneeded properties for export
"""
if hasattr(aq_base(obj), '_dav_writelocks'):
del aq_base(obj)._dav_writelocks
if hasattr(obj, '__ac_local_roles__'):
# remove local roles
obj.__ac_local_roles__ = None
......
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