On Thu, May 03, 2007 at 04:01:04PM -0500, Sidnei da Silva wrote: > Alright, here it is.
Thank you! > Now that I look at it, iterSelect() is indeed in > the backtrace, but the assignment is in _init, which means it's when > the object instance is created. But assignment to ._connection could be done at any place. There is even a special method .setConnection(). > File > "c:\Python24\lib\site-packages\sqlobject-0.8.2-py2.4.egg\sqlobject\dbconn > ection.py", line 776, in next > obj = self.select.sourceClass.get(result[0], selectResults=result[1:], > conne > ction=self.dbconn) > File > "c:\python24\lib\site-packages\SQLObject-0.8.2-py2.4.egg\sqlobject\main.p > y", line 934, in get > val._init(id, connection, selectResults) The traceback looks good so far, but here start strangeness: > File > "c:\python24\lib\site-packages\SQLObject-0.8.2-py2.4.egg\sqlobject\main.p > y", line 965, in _init > for uit in r: The code is certainly not from SQLObject. > File > "c:\python24\lib\site-packages\SQLObject-0.8.2-py2.4.egg\sqlobject\sresul > ts.py", line 160, in __iter__ > return iter(list(self.lazyIter())) > File > "c:\python24\lib\site-packages\SQLObject-0.8.2-py2.4.egg\sqlobject\sresul > ts.py", line 168, in lazyIter > return conn.iterSelect(self) Ok. And then... > File > "c:\Python24\lib\site-packages\sqlobject-0.8.2-py2.4.egg\sqlobject\dbconn > ection.py", line 834, in iterSelect > self._connection = connection ...line 834. As I have said, it is Transaction. But I don't see any assignments to self._connection in Transaction.iterSelect(). > File > "c:\Python24\lib\site-packages\turbogears-1.0.1-py2.4.egg\turbogears\data > base.py", line 228, in __set__ > return self.hub.__set__(obj, type) Turbogears/database.py? Er? What's that? > File > "c:\Python24\lib\site-packages\sqlobject-0.8.2-py2.4.egg\sqlobject\dbconn > ection.py", line 957, in __set__ 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