Commit 24de397a authored by Jérome Perrin's avatar Jérome Perrin

call newContent and propagate **kw (so that we can create cells with

activate_kw)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31036 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d224882a
...@@ -514,16 +514,7 @@ class XMLMatrix(Folder): ...@@ -514,16 +514,7 @@ class XMLMatrix(Folder):
Creates a new content as a cell. This method is Creates a new content as a cell. This method is
meant to be overriden by subclasses. meant to be overriden by subclasses.
""" """
if portal_type is not None : return self.newContent(id=id, portal_type=portal_type, **kw)
type_name = portal_type
else:
content_types = self.allowedContentTypes()
if len(content_types) >= 1:
type_name = content_types[0].id
else:
type_name = self.portal_type
self.invokeFactory(type_name=type_name,id=id)
return self.get(id)
security.declareProtected( Permissions.AccessContentsInformation, security.declareProtected( Permissions.AccessContentsInformation,
'getCellKeyList' ) 'getCellKeyList' )
......
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