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

mike mike@if-site.com
Mon, 19 Jun 2000 23:54:46 +0800


"Phillip J. Eby" wrote:
> 
> At 08:45 PM 6/19/00 +0800, mike wrote:
> >It looks like retrieved items have no _v_dm_ set. I fixed it (not sure
> >this is right) with:
> >
> 
> Um, check to make sure you're using _RawItem, not _v_itemConstructor, in
> your retrieveItem method, if you're using a subclass.  If you are using
> _RawItem, then I've got a bug somewhere deeper that needs fixing.  But
> getItem isn't the place it's broken, as _RawItem is responsible for
> ensuring the datamanager invariants (skin points to _v_dm_ and has its
> canonical form registered).

I use (ZSession.py from ZSession 0.0.2) :

    def getItem( self, id) :
        """ """
        if self._timer.idleTime() > self.session_ttl / 2 :
            self.removeDead()
        item = Specialist.getItem( self, id)
        return item