Re: [Repoze-dev] Turbogears2 identity variable in templates

2009-04-29 Thread Jorge Vargas
On Mon, Apr 27, 2009 at 5:15 AM, Gustavo Narea m...@gustavonarea.net wrote: Hola, Jorge. On Monday April 27, 2009 10:42:35 Jorge Vargas wrote: more interesting than that template_vars.tg.identity returns None when the user isn't logged on. which means you will have to precheck all your

Re: [Repoze-dev] Turbogears2 identity variable in templates

2009-04-29 Thread Jorge Vargas
On Mon, Apr 27, 2009 at 5:15 AM, Gustavo Narea m...@gustavonarea.net wrote: Hola, Jorge. You have two options to do that, which are also simpler (from my point of view): http://code.gustavonarea.net/repoze.what-pylons/Manual/Misc.html#predicate-evaluators

Re: [Repoze-dev] Turbogears2 identity variable in templates

2009-04-29 Thread Gustavo Narea
Hello! On Wednesday April 29, 2009 12:37:02 Jorge Vargas wrote: On Monday April 27, 2009 10:42:35 Jorge Vargas wrote: more interesting than that template_vars.tg.identity returns None when the user isn't logged on. which means you will have to precheck all your access tests in something

[Repoze-dev] Turbogears2 identity variable in templates

2009-04-27 Thread Jorge Vargas
Hello, Today I took some time to review the state of affairs for checking for what used to be identity in TG1. A little reminder of the API http://docs.turbogears.org/1.0/UsingIdentity#using-identity-in-templates IMO that api was really good as tg.identity (the template variable) was a simple