Noah Gift wrote:
> UndefinedError: "logging_in" not defined
>
> I think it might have to do with the version of genshi, as other
> people I work with were using an older version of genshi, I think 3?
> I just bought a new laptop and did a "new" easy_install and I think I
> grabbed a newer version from easy_install that broke things.
I also had this problem recently, and it turns out that the issue has
something to do with the way that newer versions of genshi look for
template variables. In this particular case, the "logging_in" variable
doesn't exist in the template (meaning it is not being passed into the
template at all). Older versions of genshi ignored this problem and
would
just return None (I think) when you accessed an undefined variable.
You can fix this and stay with the latest and greatest version of genshi
by changing your master template to check to see if the variable is
actually
defined, before accessing it:
<div py:if="tg.config('identity.on',False)
and not locals().get('logging_in', False)">
This should solve your problem!
--
Jonathan LaCour
http://cleverdevil.org
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---