Hi everyone,

We have a view which uses json render:
    @view_config(route_name='comment_post', renderer='json',
permission=ALL_PERMISSIONS)

The above view is called by an Ajax post button,

we also defined the login view, decorated with forbidden, as such:

    @view_config(route_name='login', renderer='spsocial:templates/auth/
login.pt')
    @forbidden_view_config(renderer='spsocial:templates/auth/login.pt')
    def login(self):
        login_url = self.request.route_url('login')
        email = self.request.GET.get('email','')
        from_r = self.request.GET.get('from_r','')

        referrer = self.request.url
        ....


from the print out of the referrer (comment_post) , I can see the login
view is called, but the page just stayed on the comment_post page, didn't
redirect to the login page.

Any body know where is the problem?

Thanks

George Hu

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