[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZMI/Views/Browser - GenericCreatorView.py:1.1.4.6

Jim Fulton jim@zope.com
Mon, 10 Jun 2002 15:34:54 -0400


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

Modified Files:
      Tag: Zope-3x-branch
	GenericCreatorView.py 
Log Message:
Implemented 

http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/IContainerPythonification

Along the way:

- Converted most uses of has_key to use in.

- Fixed a bug in Interface names and namesAndDescriptions methods 
  that caused base class attributes to be missed.



=== Zope3/lib/python/Zope/App/ZMI/Views/Browser/GenericCreatorView.py 1.1.4.5 => 1.1.4.6 ===
         container=getWrapperContext(addable)
         
-        if name in container.objectIds():
+        if name in container:
             raise DuplicateIDError, "ID '%s' already in use." % name
 
         container.setObject(name, createObject(container, addable.id))