[Erp5-report] r38946 fabien - /erp5/trunk/products/ERP5Type/Core/Folder.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Oct 7 11:01:18 CEST 2010
Author: fabien
Date: Thu Oct 7 11:01:17 2010
New Revision: 38946
URL: http://svn.erp5.org?rev=38946&view=rev
Log:
make this method public as describe in Folder.FolderMixin.newContent doc string :
"This method is public, since TypeInformation.constructInstance will perform
the security check."
Modified:
erp5/trunk/products/ERP5Type/Core/Folder.py
Modified: erp5/trunk/products/ERP5Type/Core/Folder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Core/Folder.py?rev=38946&r1=38945&r2=38946&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Core/Folder.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Core/Folder.py [utf8] Thu Oct 7 11:01:17 2010
@@ -453,6 +453,7 @@ class Folder(CopyContainer, CMFBTreeFold
def __init__(self, id):
self.id = id
+ security.declarePublic('newContent')
def newContent(self, *args, **kw):
""" Create a new content """
# Create data structure if none present
More information about the Erp5-report
mailing list