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

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to