2013-02-06 09:57:14 Chris Withers napisał(a):
I used to do this:
import transaction
with transaction:
... print 'hello'
...
Traceback (most recent call last):
File console, line 1, in module
AttributeError: __exit__
When did that stop working and what should I now do instead?
Chris Withers ch...@simplistix.co.uk wrote:
Hi All,
I used to do this:
import transaction
with transaction:
... print 'hello'
...
Traceback (most recent call last):
File console, line 1, in module
AttributeError: __exit__
When did that stop working and what should I now do
On 06/02/2013 11:47, Wichert Akkerman wrote:
You can also use the transaction manager directly instead of the bound methods
transaction lifts out of it:
import transaction
with transaction.manager:
pass
yeah, this is what I'll do.
Chris
--
Simplistix - Content Management, Batch
Hi there!
I hav a relstorage with mysql backend that grew out of bounds
and we're looking into different backend solutions now. Possibly
also going back to FileStorage and using zeo...
Anyway we'll have to convert the databases at some point. As these
are live DBs we cannot shut them down for