[Erp5-report] r9468 - /erp5/trunk/products/ERP5Type/Document/Folder.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Aug 25 17:51:52 CEST 2006
Author: jerome
Date: Fri Aug 25 17:51:51 2006
New Revision: 9468
URL: http://svn.erp5.org?rev=9468&view=rev
Log:
newContent should be public, the check is done in TypeInformation.constructInstance
Modified:
erp5/trunk/products/ERP5Type/Document/Folder.py
Modified: erp5/trunk/products/ERP5Type/Document/Folder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Document/Folder.py?rev=9468&r1=9467&r2=9468&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Document/Folder.py (original)
+++ erp5/trunk/products/ERP5Type/Document/Folder.py Fri Aug 25 17:51:51 2006
@@ -64,13 +64,14 @@
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
- security.declareProtected(Permissions.AddPortalContent, 'newContent')
+ security.declarePublic('newContent')
def newContent(self, id=None, portal_type=None, id_group=None,
default=None, method=None, immediate_reindex=0,
container=None, created_by_builder=0, activate_kw=None,
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:
container = self
More information about the Erp5-report
mailing list