On 7/6/07, Michael Bienia <[EMAIL PROTECTED]> wrote: > I'm trying to integrate routes into my project. > > I've installed routes today following > http://docs.turbogears.org/1.0/RoutesIntegration > which worked quite well. > > But I've a problem with an URI that is guarded with > @identity.require(identity.not_anonymous()) > > I've no problem to access that URI before my routes integration. > It worked when a user was logged in and also when nobody was logged in > (redirection to the login page). > > Now after I switched to routes I can access URIs without this decorator > without a problem. So I assume I got it right. > > But URIs with this identity decorator didn't work when a user > wasn't logged in. The browser waits for a result but doesn't seem to get > anything. After I logged in, I could access the same URI without a problem. > > Has someone an idea what could be the problem?
I use Routes with Identity without any problems (on TG 1.0.2.2). Is your login page still located at /login? Identity will redirect the request to that page unless you change the URL to redirect to in config/app.cfg. Otherwise, turn up the logging level in dev.cfg (change the INFOs at the bottom to DEBUG), and look at the logs when you try access the page. Good luck, Neil -- Neil Blakey-Milner http://nxsy.org/ [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

