Yeah, that's a bug. It needs to switch to doing getattr() and it also needs to wrap incoming dictionaries in a util.DictWrapper.
Kevin On 2/4/06, Alberto Valverde <[EMAIL PROTECTED]> wrote: > > I ran into this problem too... The porblem is at neforms.py:415 in: > py:replace="field.display(value=value.get(field.name), > options=options.get(field.name))" > > A you can see, the form template tries too fetch the object's value > via "get" (instead of normal attribute lookup). > > I fixed, err, worked-around it, by sending the SO object as a > dictionary via database.so_to_dict. > I'k not sure wether this is a bug or new behaviour, though.... > > Alberto > > On Feb 4, 2006, at 7:56 AM, Randall wrote: > > > > > I fiddled with the controller so I could see the real exception and > > this is interesting: > > > > File > > "/home/randall/downloads/svn/turbogears/thirdparty/kid/kid/pull.py", > > line 206, in _coalesce > > for ev, item in stream: > > File "<string>", line 66, in _pull > > File > > "/usr/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1516- > > py2.4.egg/sqlobject/main.py", > > line 898, in get > > id = cls.sqlmeta.idType(id) > > ValueError: invalid literal for int(): permissionId > > > > It looks like the SO get method is sent the wrong value. That seems > > weird to me though becuase by the time form.insert is called, the SO > > instance has already been fetched. > > > > -- Kevin Dangoor Author of the Zesty News RSS newsreader email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com

