[SQLObject] Problems with str() on SQLObjects
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: Simen B. <si...@lu...> - 2003-05-10 12:44:03
|
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 =3D 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.
___
SIMEN BREKKEN / born to synthesize.
|