Commit eea3c11e authored by Nicolas Dumazet's avatar Nicolas Dumazet

commit stubs to be able to add interaction workflows without

breaking everything.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38645 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 07f531a0
from zLOG import LOG, ERROR, BLATHER
def resetDynamicDocuments(context, slave=False):
"""
Allow resetting all classes to ghost state, most likely done after
adding and removing mixins on the fly
Nodes just trying to catch up with state of classes without wanting
to invalidate them globally should set slave=True.
"""
LOG("ERP5Type.Dynamic", 0, "Resetting dynamic classes")
# stub
return
...@@ -212,6 +212,13 @@ class TypesTool(TypeProvider): ...@@ -212,6 +212,13 @@ class TypesTool(TypeProvider):
return res return res
security.declareProtected(Permissions.ModifyPortalContent,
'resetDynamicDocuments')
def resetDynamicDocuments(self):
"""Resets all dynamic documents: force reloading erp.* classes"""
from Products.ERP5Type.Dynamic.portaltypeclass import resetDynamicDocuments
resetDynamicDocuments(self)
security.declareProtected(Permissions.AddPortalContent, security.declareProtected(Permissions.AddPortalContent,
'manage_addTypeInformation') 'manage_addTypeInformation')
def manage_addTypeInformation(self, add_meta_type, id=None, def manage_addTypeInformation(self, add_meta_type, id=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