one solution is to have a dummy view which redirects to the handler's
action...

On Feb 18, 12:27 pm, jamshed <[email protected]> wrote:
> Using pyramid_sqla I have the following login action:
>
> class AccountHandler(object):
>     ......some code.........
>     @action(renderer='modules/account/login.html')
>     def login(self):
>         ......some code.........
>
> Looking at the following docs:
>    http://docs.pylonsproject.org/projects/pyramid/1.0/narr/hooks.html#ch...
> how would I adapt this code:
>     config.add_view(forbidden_view, context=Forbidden)
> to use with pyramid_sqla? (i.e. how i do specify handler/action in
> place of forbidden_view)
>
> Thanks,
> Jamshed

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