On Thursday 14 December 2006 09:11, [EMAIL PROTECTED] wrote:
> Hi Diez,
>
> after some source code reading, I got this working. I guess your main
> problem is that call() and call_with_request() use the method directly
> but identity support is implemented via cherrypy's filter mechanism.
> These filters (especially "before_main") are only run if you use the
> "normal" way calling cherrypy. In these filters request.identity is
> set. The easiest way I found so far was to call
> apply_filters("before_main") manually just before call_with_request.Thanks for your reply - it didn't work for me though, as so far I use create_request which actually _does_ run all the filtering stuff. And while there is the test_user attached to the request, the identity is somehow removed and the later VisitFilter will not find a suitable identity and thus redirect to the login page. Hrmpf. I'll see if I can get that working, but it's actually much more (black...) magic than I'm currently interesting in tinkering with. I'm at my first, maximum second Hogwarts year... Diez --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

