From: <gs...@sy...> - 2003-10-04 20:09:23
|
hello, i just played a little bit around with sqlobject and have a few questions: 1) according to the documentation "_cacheValue = False" should be used when using transactions. what is the reason for this (especially when using serialized transactions i can't see any cause for problems when using caching)? 2) are sqlobject calls (e.g. connection.transaction()) threadsafe or do i need to take care of this? 3) btw, i created a small proxy class to bind sqlobject transactions to zope transactions (it's attached to this mail if anyone is interested). to use this class it's required to run zope under python2.2 (that's already the default in debian/unstable). usage example: def frob(self, REQUEST): 'testmethod' trans = oodb.new_transaction() person = oodb.Person6.select(connection = trans) (manually passing the transaction to each method is a little bit ugly, but i haven't figured out yet how to do this automatically.) cu /gst <oodb.py> |