[Zope-dev] Yet another bug. (Re: [Zope-dev] Bug?)

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


It looks like retrieved items have no _v_dm_ set. I fixed it (not sure
this is right) with:

File: Rack.py

    def getItem(self, key):
        """Get an item from the rack by key"""
        
        # Borrow canonicals map for per-transaction item cache
        k = key,
        item = self._canonicalForm(k,_marker)
        
        if item is _marker:
            item = self.retrieveItem(key)
            self._registerCanonical(k,item) # XXX Should we cache
non-existence?
            
        if item is not None: item._setRack(self.aq_inner)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        return item