Commit 351619d1 authored by Nicolas Dumazet's avatar Nicolas Dumazet

hereby removing an useful _edit method that is now implemented in an interaction workflow


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42863 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d575c987
...@@ -501,26 +501,6 @@ class ERP5TypeInformation(XMLObject, ...@@ -501,26 +501,6 @@ class ERP5TypeInformation(XMLObject,
""" """
return self.constructTempInstance(self, self.getId()).propertyMap() return self.constructTempInstance(self, self.getId()).propertyMap()
def _edit(self, *args, **kw):
"""
Method overload
Reset _aq_dynamic if property_sheet definition has changed)
XXX This is only good in single thread mode.
In ZEO environment, we should call portal_activities
in order to implement a broadcast update
on production hosts
"""
property_list = 'factory', 'property_sheet_list', 'base_category_list'
previous_state = [getattr(aq_base(self), x) for x in property_list]
result = XMLObject._edit(self, *args, **kw)
if previous_state != [getattr(aq_base(self), x) for x in property_list]:
# XXX very dubious, isnt it done in interaction workflows?
# most likely, only base_category_list is missing
self.portal_types.resetDynamicDocuments()
return result
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'PrincipiaSearchSource') 'PrincipiaSearchSource')
def PrincipiaSearchSource(self): def PrincipiaSearchSource(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