master.kid has this:
=====
<span py:if="tg.identity.anonymous">
<a href="/login">Login</a>
</span>
<span py:if="not tg.identity.anonymous">
Welcome ${tg.identity.user.email_address}.
<a href="/login/logout">Logout</a>
</span>
=====
how can i stick stuff in tg like that? ( not using the variables
provider )
and where is that tg variable? is that just turbogears? is that
cherrypy.request ? is it something else?
whenver i try, i call errors because its addressing dicts not
attributes and vice versa. i tried overriding __getattr__, but it
didnt work
the reson i ask these things is that i can't use the default tg
identity/visit sytem - its incompatiable with what i need right now, so
i need to reimplement it in a way that i can switch back to it if/when
sqlalchemy support is better.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---