RE: [ZODB-Dev] misleading exception

2005-11-09 Thread dvd
On Sun, 2005-11-06 at 18:48 -0500, Tim Peters wrote: > [dvd] > > Hi all, I'm still working with savepoints and today I spend about tewo > > hours to find an error, misleaded by a strange Exception > > As Dieter said (thanks, Dieter!), the current transaction should always be > explicitly committed

RE: [ZODB-Dev] misleading exception

2005-11-08 Thread Tim Peters
[Dieter Maurer] >>> You should file a bug report: "http://www.zope.org/Collectors/Zope";, >>> category "database". This way, Tim can fix the hole in the >>> "ConnectionStateError" check. [Jim Fulton] >> It's a mistake to rely on Tim alone to fix bugs. [Dieter] > Maybe, it is a mistake but most ZO

Re: [ZODB-Dev] misleading exception

2005-11-08 Thread Dieter Maurer
Jim Fulton wrote at 2005-11-6 11:22 -0500: >Dieter Maurer wrote: >> >> You should file a bug report: "http://www.zope.org/Collectors/Zope";, >> category "database". This way, Tim can fix the hole in the >> "ConnectionStateError" check. > >It's a mistake to rely on Tim alone to fix bugs. Maybe, it

RE: [ZODB-Dev] misleading exception

2005-11-06 Thread Tim Peters
[dvd] > Hi all, I'm still working with savepoints and today I spend about tewo > hours to find an error, misleaded by a strange Exception As Dieter said (thanks, Dieter!), the current transaction should always be explicitly committed or aborted before closing any Connection involved in the transac

Re: [ZODB-Dev] misleading exception

2005-11-06 Thread Jim Fulton
Dieter Maurer wrote: You should file a bug report: "http://www.zope.org/Collectors/Zope";, category "database". This way, Tim can fix the hole in the "ConnectionStateError" check. It's a mistake to rely on Tim alone to fix bugs. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Pyt

Re: [ZODB-Dev] misleading exception

2005-11-06 Thread Dieter Maurer
dvd wrote at 2005-11-4 17:49 +0100: > ... some weird code ... >If I decomment the following line >#transaction.get().abort() > >all works fine. As a general rule: you *MUST* abort/commit before you close the connection. >The strange is that the exception is raised when i try to commit the >transa

[ZODB-Dev] misleading exception

2005-11-04 Thread dvd
Hi all, I'm still working with savepoints and today I spend about tewo hours to find an error, misleaded by a strange Exception ZODB: 3.5.1 from ZODB import FileStorage, DB from BTrees.OOBTree import OOBTree import transaction def CreateDatabase(fname, creds): uid, password = creds