On Fri, Jul 06, 2007 at 03:50:24PM +0200, [EMAIL PROTECTED] wrote: > My hacky solution is to not acquire the class's lock in __init__(), when in > the process of fetching an instance: > > def threadSafeMethod(lock): > def decorator(fn): > def _wrapper(self, *args, **kwargs): > > if '_SO_fetch_no_create' in kwargs: > return fn(self, *args, **kwargs)
Does the solution work in the long run? Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss