Hi, my master.kid expects a variable selectedTab, to highlight the
appropriate tab.

In extend my kid files with master.kid like this:

<html xmlns="http://www.w3.org/1999/xhtml";
xmlns:py="http://purl.org/kid/ns#";
   py:extends="'../master.kid'">


However, i have to pass selectedTab everytime while using these kid
files in the dict which is returend from the controller.

I tried to do this:

<?python
       selectedTab=1
?>
<html xmlns="http://www.w3.org/1999/xhtml";
xmlns:py="http://purl.org/kid/ns#";
   py:extends="'../master.kid'">

But, master.kid still doesn't see the selectedTab variable. Looks like
the variable scope isn't the same. How can i declare a variable requied
by master.kid from within another kid file?

thanks.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to