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

Raju Sivalingam sraju at zeomega.com
Wed Dec 10 04:04:37 EST 2003


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

Modified Files:
	adding.py 
Log Message:

  -- bug fixed (to check Null value for name)




=== Zope3/src/zope/app/browser/container/adding.py 1.26 => 1.27 ===
--- Zope3/src/zope/app/browser/container/adding.py:1.26	Wed Dec 10 02:41:09 2003
+++ Zope3/src/zope/app/browser/container/adding.py	Wed Dec 10 04:04:36 2003
@@ -72,9 +72,11 @@
         else:
             request = self.request           
             name = request.get('add_input_name',name)
-            
-            if not name:
+
+            if name is None:
                 name = chooser.chooseName(self.contentName or '', content)
+            elif name=='':
+                name = chooser.chooseName('', content)
             chooser.checkName(name, container)
 
         container[name] = content




More information about the Zope3-Checkins mailing list