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
[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
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
[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
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
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
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