Now I'm having some new problems with it.  I think this is a typical
scenario.  I have a search form that posts to a method searchResults.
searchResults displays the paged results.  I'm getting FormEncode
errors when trying to go to different pages.

The method is heavily decorated and includes valdation:

    @expose(template="tgwater.planreview.templates.search_results")
    @validate(form=createSearchForm)
    @error_handler(search)
    @paginate('projects', default_order='id')
    def searchResults(self, **data):
        #stuff

My validation is a FormEncode Schema defined for the form.

All works on the same post, but when following a link to a new page, I
get errors like this:

  File
"/usr/lib/python2.4/site-packages/FormEncode-0.5.1-py2.4.egg/formencode/schema.py",
line 116, in _to_python
    for name, value in value_dict.items():
AttributeError: 'unicode' object has no attribute 'items'

Seems like the arguments passed in the URL are not being marshalled.


--~--~---------~--~----~------------~-------~--~----~
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