[Zope-dev] Bug? + another bug (ZPatterns 0.0.4a)

mike mike@if-site.com
Mon, 19 Jun 2000 20:12:37 +0800


Itamar Shtull-Trauring wrote:
> 
> mike wrote:
> >
> > 1. Create Specialist
> > 2. Manage it
> > 3. See Zope output.
> 
> I'm not having any problems - maybe post your Zope version to the mailing
2.2.6

> list, and explain what exactly you did in step 2.
Just clicked on newly created Specialist instance (with mouse, to be
exact :-)

Another bug I found (file Rack.py):

    def createItem(self,key):
        # Create a new object, identified by key
        item = self.getItem(key)
        # XXX What if all items potentially exist?
        if item is not None:
            raise KeyError,("'%s' already exists" % key)
        item = self._RawItem(key)
        a = self.loadAttrib
        if not a:
            slot = self._writeableSlot(key)
            slot[SelfKey] = item
            item._setSlot(slot)         # Not needed for non-ZODB
storage
        item._objectAdding()
        self._registerCanonical(k,item) # XXX Should we cache
non-creation?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - k was not defined (=key?)
        
        return item