[TransWarp] __getitem__ on DM requires active transaction

Roché Compaan roche at upfrontsystems.co.za
Mon Dec 23 11:59:36 EST 2002


Hi Philip

I had a look at the data_managers.py code in the storage package and
something puzzles me.

In the __getitem__ method of a QueryDM there is a call to
self.joinedTxn.  This method will raise an exception if one is not
already in a transaction (line 151 in transactions.py):

        elif not self.isActive():
            raise exceptions.OutsideTransaction

What if I want to retrieve an object from a DataManager and I am not in
a transaction? Surely one doesn't have to be in a transaction if you
simply want to retrieve an object?

-- 
Roché Compaan
Upfront Systems                 http://www.upfrontsystems.co.za



More information about the PEAK mailing list