[CMF-checkins] CVS: Products/CMFCore - PortalFolder.py:1.79
TypesTool.py:1.85
Jens Vagelpohl
jens at dataflake.org
Wed Mar 23 16:56:09 EST 2005
Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv10754/CMFCore
Modified Files:
PortalFolder.py TypesTool.py
Log Message:
- CMFCore.TypesTool and CMFCore.PortalFolder: If invokeFactory is
called from code it will now hand back the created object's ID. This
does not change any behavior when called directly from the web. Both
methods returned None before, so there is no dependencies anywhere
on their return values, anyway. (http://collector.zope.org/CMF/331)
=== Products/CMFCore/PortalFolder.py 1.78 => 1.79 ===
--- Products/CMFCore/PortalFolder.py:1.78 Wed Mar 9 16:35:12 2005
+++ Products/CMFCore/PortalFolder.py Wed Mar 23 16:56:09 2005
@@ -370,7 +370,7 @@
if not myType.allowType( type_name ):
raise ValueError('Disallowed subobject type: %s' % type_name)
- pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
+ return pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
security.declareProtected(AddPortalContent, 'checkIdAvailable')
def checkIdAvailable(self, id):
=== Products/CMFCore/TypesTool.py 1.84 => 1.85 ===
--- Products/CMFCore/TypesTool.py:1.84 Wed Mar 16 06:09:46 2005
+++ Products/CMFCore/TypesTool.py Wed Mar 23 16:56:09 2005
@@ -867,6 +867,8 @@
, info.immediate_view )
RESPONSE.redirect( immediate_url )
+ return ob.getId()
+
security.declarePrivate( 'listActions' )
def listActions(self, info=None, object=None):
""" List all the actions defined by a provider.
More information about the CMF-checkins
mailing list