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 s
On Mon, Apr 27, 2009 at 5:15 AM, Gustavo Narea 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
> http://code.gustavonarea.net/repoze.what-pylons/M
On Mon, Apr 27, 2009 at 5:15 AM, Gustavo Narea 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 access tests in so
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 access tests in something along the lines of
>
> if tg.identity and tg.identity['
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 pr