Re: [SQLObject] problem with threadSafeMethod wrapper?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2006-05-09 16:36:25
|
On Tue, May 09, 2006 at 09:14:08AM -0700, David Creemer wrote: > > def _wrapper(self, *args, **kwargs): > > lock.acquire() > > try: > > return_value = fn(self, *args, **kwargs) > > finally: > > lock.release() > > > > > Ignore the "print" part -- it was there just to prove that the > exception is getting thrown. > > Your change is perfect, as far as I'm concerned. I'm currently > running exactly that code w/good results on my production server. Applied in the r1758. Thank you! Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |