Commit 90ed8507 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added comment.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13465 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5f6a18dc
...@@ -246,6 +246,8 @@ class ERP5TypeInformation( FactoryTypeInformation, ...@@ -246,6 +246,8 @@ class ERP5TypeInformation( FactoryTypeInformation,
if not (hasattr(container, 'isTempObject') and container.isTempObject())\ if not (hasattr(container, 'isTempObject') and container.isTempObject())\
and not self.isConstructionAllowed(container): and not self.isConstructionAllowed(container):
raise AccessControl_Unauthorized('Cannot create %s' % self.getId()) raise AccessControl_Unauthorized('Cannot create %s' % self.getId())
# Then keep on the construction process
ob = self._constructInstance(container, id, *args, **kw) ob = self._constructInstance(container, id, *args, **kw)
ob = self._finishConstruction(ob) ob = self._finishConstruction(ob)
......
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