From: Oleg B. <ph...@ph...> - 2005-11-21 17:13:11
|
Hello! Ian, any chance the test framework causes this? def createValidators(self): > if hasattr(self.soClass._connection, "decimalSeparator"): [/home/phd/work/SQLObject/SQLObject-trunk/sqlobject/col.py:1177] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def __get__(self, obj, type=None): # I'm a little surprised we have to do this, but apparently # the object's private dictionary of attributes doesn't # override this descriptor. if obj and obj.__dict__.has_key('_connection'): return obj.__dict__['_connection'] > return self.getConnection() [/home/phd/work/SQLObject/SQLObject-trunk/sqlobject/dbconnection.py:906] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def getConnection(self): try: return self.threadingLocal.connection except AttributeError: try: return self.processConnection except AttributeError: raise AttributeError( "No connection has been defined for this thread " E "or process") > AttributeError: No connection has been defined for this thread or process [/home/phd/work/SQLObject/SQLObject-trunk/sqlobject/dbconnection.py:918] Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |