Re: [SQLObject] Problems with str() on SQLObjects
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Brad B. <br...@bb...> - 2003-05-10 14:15:39
|
On 05/10/03 14:49, Simen Brekken wrote: > Hi, I'm working on an MVC app and I'm using SQLObject for the Model part of it, however I'm having some problems getting the values of normal string columns: > > File "...\xmlify.py", line 22, in xmlrepr > return "<"+name+">"+str(object)+"</"+name+">" > File "C:\Utils\Python\Lib\site-packages\SQLObject\SQLObject.py", line 834, in __repr__ > return '<%s %i %s>' \ > File "C:\Utils\Python\Lib\site-packages\SQLObject\SQLObject.py", line 843, in _reprItems > r = repr(value) > File "C:\Utils\Python\Lib\site-packages\SQLObject\SQLObject.py", line 834, in __repr__ > > It runs into an infinite loop! 'object'. The strange thing is that this only happens to Col() or StringCol() types, IntCol() works fine. Can you post the error message after the traceback or is it just a simple KeyboardInterrupt from getting out of the infinite loop (if in fact it's an infinite loop)? Also, a simple test case to reproduce the bug will shorten the distance between problem and solution. -- Brad Bollenbach BBnet.ca |