On Sep 28, 7:49 pm, Graham Higgins <[email protected]> wrote:
> >> With this, and the code taken from toscawidget's tutorial
>
> which has explicitly:
>
> """
> In myapp/controllers/movie.py, add the following line:
>
> from tw.mods.pylonshf import validate

which is in my installation -- the entire controller with the built in
models is included in the first post.


>>The following controller:
>>
>>from pylons import request, response, session, tmpl_context
>>from tw.mods.pylonshf import validate
>>
>>from cp.lib.base import BaseController, render

>
> Inside the RootController class, add the following:
>
> @validate(form=movie_form, error_handler=index) def save(self, **kw):  
> return str(kw)

Changing the validate to take the form= versus not using form= makes
no difference.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to