[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container/Views/Browser - Adding.py:1.1.2.2
Gary Poster
garyposter@earthlink.net
Thu, 20 Jun 2002 12:12:34 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv20109/Container/Views/Browser
Modified Files:
Tag: gary-zope3_add_menu-branch
Adding.py
Log Message:
small fixes, the skeleton for testAdder
=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Adding.py 1.1.2.1 => 1.1.2.2 ===
name=self.contentName
+ if name is None:
+ raise ValueError("missing content name")
+
if name in context.keys():
raise DuplicateIDError, "name '%s' already in use." % name
@@ -88,7 +91,7 @@
if view is not None:
return view
- raise NotFound(c, name, request)
+ super(Adding, self).publishTraverse() # so that named views work
def browserDefault(self, request):
c = self.context