On Monday 01 September 2008, Jorge Vargas wrote:
> that will be tgrepoze.who, here is a link with several nice links
> http://blog.repoze.org/tgrepozewho.html
> it's not exactly a migration document but if you are familiar with tg1
> identity you should be able to work out the migration.

Thanks for that Jorge. 
This works fine as decorater, but how do I test for a logged in user inside a 
controller method? In TG1 this used to be something like:

if not identity.current.anonymous:

I have tons and tons of those references in my TG1 code, so I rather emulate 
the old way than rewrite hundreds of controller methods.
Looking at the authorize module source I guess I need to write some functions 
to provide that kind of test.

Uwe



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

Reply via email to