[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - adding.py:1.42

Jim Fulton jim at zope.com
Wed Feb 11 02:00:37 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/browser/container
In directory cvs.zope.org:/tmp/cvs-serv12080/src/zope/app/browser/container

Modified Files:
	adding.py 
Log Message:
Removed the requirement that the user name must be provided.
M src/zope/app/browser/container/tests/test_adding.py


=== Zope3/src/zope/app/browser/container/adding.py 1.41 => 1.42 ===
--- Zope3/src/zope/app/browser/container/adding.py:1.41	Thu Jan 22 23:11:50 2004
+++ Zope3/src/zope/app/browser/container/adding.py	Wed Feb 11 02:00:37 2004
@@ -148,9 +148,7 @@
             self.request.response.redirect(url)
             return
 
-        if self.namesAccepted():
-            if not id:
-                raise UserError(_(u"You must specify an id"))
+        if not self.contentName:
             self.contentName = id
 
         factory = zapi.getFactory(self, type_name)




More information about the Zope3-Checkins mailing list