Am 11.05.2010, 16:01 Uhr, schrieb Jim Fulton <j...@zope.com>:
> This wouldn't work. You would need to re-execute the suite
> for each retry. It's not enough to just keep committing the same
> transaction. (There are other details wrong with the code above,
> but they are fixable.) Python doesn't provide a way to keep
> executing the suite.
You are right.
The only thing I could come up with was something like below, using a
decorator instead of a context.
@doTransaction(count = 5)
... store data here ...
def doTransaction(transaction = None, count = 3):
for i in range(1+count):
if i == count:
For more information about ZODB, see the ZODB Wiki:
ZODB-Dev mailing list - ZODB-Dev@zope.org