Commit 9a0b941f authored by Jérome Perrin's avatar Jérome Perrin

newContent should be public, the check is done in TypeInformation.constructInstance



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9468 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 302e86c9
...@@ -64,13 +64,14 @@ class FolderMixIn(ExtensionClass.Base, CopyContainer): ...@@ -64,13 +64,14 @@ class FolderMixIn(ExtensionClass.Base, CopyContainer):
security = ClassSecurityInfo() security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation) security.declareObjectProtected(Permissions.AccessContentsInformation)
security.declareProtected(Permissions.AddPortalContent, 'newContent') security.declarePublic('newContent')
def newContent(self, id=None, portal_type=None, id_group=None, def newContent(self, id=None, portal_type=None, id_group=None,
default=None, method=None, immediate_reindex=0, default=None, method=None, immediate_reindex=0,
container=None, created_by_builder=0, activate_kw=None, container=None, created_by_builder=0, activate_kw=None,
is_indexable=None, **kw): is_indexable=None, **kw):
""" """Creates a new content.
Creates a new content This method is public, since TypeInformation.constructInstance will perform
the security check.
""" """
if container is None: if container is None:
container = self container = 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