[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container/Views/Browser - Adding.py:1.10

Steve Alexander steve@cat-box.net
Mon, 18 Nov 2002 08:34:20 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv443/lib/python/Zope/App/OFS/Container/Views/Browser

Modified Files:
	Adding.py 
Log Message:
Clarified the semantics of keys in an IContainer. They must be ascii
strings or unicodes.
If you want a container to make up its own key, and the container
supports this, the key must be the empty string.
I fixed a in Adding.py where this would not occur properly.


=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Adding.py 1.9 => 1.10 ===
--- Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Adding.py:1.9	Sat Oct 26 11:51:19 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Adding.py	Mon Nov 18 08:34:19 2002
@@ -74,8 +74,7 @@
     def publishTraverse(self, request, name):
         if '=' in name:            
             view_name, content_name = name.split("=", 1)
-            if content_name:
-                self.contentName = content_name
+            self.contentName = content_name
 
             return getView(self, view_name, request)