You can have both @action and @view_config on your function, so it'll act as a login page or as a forbidden access page
https://github.com/Pylons/pylonshq/blob/master/pylonshq/handlers/accounts.py#L24 On Feb 18, 3: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.
