On 7/4/06, Mike C. Fletcher <[EMAIL PROTECTED]> wrote: > Ed Singleton wrote: > > I posted this to the TurboGears list, but I guess someone here might > > be better placed to help me: > > > > I get this error message when I try to save a new entry into my model. > > I can't work out any useful information from it. > > > > Does anyone else have any ideas... > > > You've passed in an object where a string (or, more precisely, a unicode > value, since encode is used to take unicode to string values) was > expected. Looking in cgi.py, it's a FieldStorage instance. You'll need > to get the *value* from that field storage (i.e. fs.value) before > attempting to store it. You can, I believe, define a conversion using a > validator object in your controllers.py module. I'm too new to TG to > give you much more help than that, but hopefully it will move you > forward somewhat.
Thanks yes, you were exactly right. For the moment I've just removed the FS instances, but I'll look into creating a validator, which I think I can probably work out. Thanks Ed Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ sqlobject-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
