Re: [Zope3-Users] Re: Request in Zope3-Thread

2007-08-20 Thread Markus Leist
Hi Philipp, hi list, maybe I'm wrong, but after several tests i have noticed this change (caused by threading environment): ... setSite(old_site) transaction.get().commit() conn.close() ... with transaction.commit() there are some: ZODB.POSException.ConnectionStateError: Cannot close a

Re: [Zope3-Users] Re: Request in Zope3-Thread

2007-08-20 Thread Philipp von Weitershausen
On 20 Aug 2007, at 19:29 , Markus Leist wrote: maybe I'm wrong, but after several tests i have noticed this change (caused by threading environment): ... setSite(old_site) transaction.get().commit() conn.close() ... with transaction.commit() there are some:

Re: [Zope3-Users] Re: Request in Zope3-Thread

2007-08-20 Thread Markus Leist
Hi, i don't understand, you are right: class TransactionManager(object): def commit(self): return self.get().commit() after deletion of setSite(old_site) it seems to be better, but under some circumstances there still is: ZODB.POSException.ConnectionStateError: Cannot close a