removed depredation working, thanks Niphlod
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.0.9 (2012-10-04 20:10:46) dev
|
Version 2.0.9 (2012-10-04 20:17:03) dev
|
||||||
|
|||||||
+1
-1
@@ -6599,7 +6599,7 @@ class DAL(object):
|
|||||||
if args or kwargs:
|
if args or kwargs:
|
||||||
raise RuntimeError, 'Cannot duplicate a Singleton'
|
raise RuntimeError, 'Cannot duplicate a Singleton'
|
||||||
except KeyError:
|
except KeyError:
|
||||||
db = super(DAL, cls).__new__(cls, uri, *args, **kwargs)
|
db = super(DAL, cls).__new__(cls)
|
||||||
THREAD_LOCAL.db_instances[singleton_code] = db
|
THREAD_LOCAL.db_instances[singleton_code] = db
|
||||||
db._singleton_code = singleton_code
|
db._singleton_code = singleton_code
|
||||||
return db
|
return db
|
||||||
|
|||||||
Reference in New Issue
Block a user