Commit 6707f9ff authored by Jérome Perrin's avatar Jérome Perrin

define getVisibleAllowedContentTypeList to prevent errors when the user tries

to clone a module or add content in an erp5 site


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22563 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1869348f
...@@ -1081,6 +1081,12 @@ class ERP5Site(FolderMixIn, CMFSite): ...@@ -1081,6 +1081,12 @@ class ERP5Site(FolderMixIn, CMFSite):
new_instance.immediateReindexObject() new_instance.immediateReindexObject()
return new_instance return new_instance
security.declarePublic('getVisibleAllowedContentTypeList')
def getVisibleAllowedContentTypeList(self):
"""Users cannot add anything in an ERP5Site using standard interface.
"""
return ()
def log(self, description, content='', level=INFO): def log(self, description, content='', level=INFO):
"""Put a log message """ """Put a log message """
warnings.warn("The usage of ERP5Site.log is deprecated.\n" warnings.warn("The usage of ERP5Site.log is deprecated.\n"
......
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