[Zope-dev] CST 0.8 Updater Fixed...

Chris Withers chrisw@nipltd.com
Fri, 27 Apr 2001 12:43:22 +0100


Chris Withers wrote:
> 
> It's running and working okay, but every so often, when running it, I get:
> 
> 2001-04-27T09:15:23 PANIC(300) ZODB A storage error occurred in the last phase o

I stopped the above by wrapping the code as follows:


    get_transaction().begin()
>     path = self.getSessionDataContainerPath()
>     timeout_mins = self.getInternalDCTimeoutMins()
>     onstart = self.getOnStartPath()
>     onend = self.getOnEndPath()
> 
>     container = self.aq_parent
>     ob = SessionDataManager(id, path, title, timeout_mins, onstart, onend)
>     container.manage_delObjects(ids=[id])
>     container._setObject(id, ob)
    get_transaction().note("Done '%s'" % notepath)
    get_transaction().commit()

I wonder why it's necessary? Something to do with the weirdy mounted internal
session data container?

cheers,

Chris