On 9/7/06, Ron <[EMAIL PROTECTED]> wrote: > What is the correct way to convert python types to the string > representations that formencode uses ?
Validators have a from_python() method that reverses the to_python() functionality. Check the FormEncode docs[1] if you're unsure. [1] http://formencode.org/Validator.html > Do I have to dissect the request.query_string > variable? Do I use the validators from formencode? Not sure why you'd have to mess with query_string, if you have a validator on the mehod that's receiving that query string, it'll do the date conversion back to a datetime object. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

