I have a kid template that looks like :
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/ kid/ns#" > <div py:def="display()" id="navigation" > <h2 class="access">Navigation</h2> <!-- left nav --> <div id="left-nav"> <div class="top-level"> <a accesskey="1" href="${tg.url('/rooms')}">Rooms</a> <div> </div><!--left-nav --> </div> </html> It is included through master .kid <?python sidebar = kid.load_template('./sidebar.kid') ?> and used: <div py:replace = "sidebar.display()" /> when I access my site, I get NameError: name 'tg' is not defined Now, I use tg.url in master.kid, with no problems. ( The default identity stuff is in there, so I have stuff like <span py:if="tg.identity.anonymous"> ) My question is, by defining my kid template they way they are ( wrapping the sidebar in the display function), do I lose the default tg in kid ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

