[CMF-checkins] CVS: CMF/CMFWorkspaces/skins/workspaces - content_add.py:1.3

Shane Hathaway shane@zope.com
Tue, 7 Jan 2003 16:35:31 -0500


Update of /cvs-repository/CMF/CMFWorkspaces/skins/workspaces
In directory cvs.zope.org:/tmp/cvs-serv22179/skins/workspaces

Modified Files:
	content_add.py 
Log Message:
Optionally return object

=== CMF/CMFWorkspaces/skins/workspaces/content_add.py 1.2 => 1.3 ===
--- CMF/CMFWorkspaces/skins/workspaces/content_add.py:1.2	Thu Jan  2 16:51:32 2003
+++ CMF/CMFWorkspaces/skins/workspaces/content_add.py	Tue Jan  7 16:35:29 2003
@@ -1,4 +1,4 @@
-##parameters=type, id=None, title=''
+##parameters=type, id=None, title='', return_object=0
 ##title=Adds an object to a BTreeFolder and makes a link in the workspace
 # Also generates the ID if necessary, assuming that dest is a BTreeFolder2.
 
@@ -24,3 +24,7 @@
 context.portal_lock.lock(ob) # Lock it on creation
 
 # Note that invokeFactory() causes a redirection.
+if return_object:
+    return ob
+else:
+    return ''