thanks again! On Feb 18, 4:17 pm, Blaise Laflamme <[email protected]> wrote: > be sure to use config.scan() in your config intitailization. > > On Feb 18, 6:30 pm, jamshed <[email protected]> wrote: > > > thanks.. i see that the login form kicks in when i > > visithttp://pylonsproject.org/test > > > however the view_config decorator doesn't work for my app for some > > reason (my earlier suggestion with the dummy view does work) > > > using: > > ./pyramid_sqla-1.0rc1-py2.6.egg > > ./pyramid-1.0-py2.6.egg > > ./pyramid_handlers-0.1-py2.6.egg > > > On Feb 18, 12:48 pm, Blaise Laflamme <[email protected]> wrote: > > > > 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/acco... > > > > 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.
