Commit 9c927a3f authored by Kevin Deldycke's avatar Kevin Deldycke

revert to previous state


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4065 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4ca3dd89
...@@ -71,8 +71,6 @@ class FolderMixIn(ExtensionClass.Base): ...@@ -71,8 +71,6 @@ class FolderMixIn(ExtensionClass.Base):
new_id = str(container.generateNewId(id_group = id_group, default=default, method=method)) new_id = str(container.generateNewId(id_group = id_group, default=default, method=method))
else: else:
new_id = str(id) new_id = str(id)
if not container.allowedContentTypes():
raise 'NoAllowedContentTypesError'
if portal_type is None: portal_type = container.allowedContentTypes()[0].id if portal_type is None: portal_type = container.allowedContentTypes()[0].id
self.portal_types.constructContent(type_name=portal_type, self.portal_types.constructContent(type_name=portal_type,
container=container, container=container,
......
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