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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to