Hi ,
I am new to TurboGears and am trying to use tabs.
my settings .....
1.tabber = widgets.Tabber()
2.My controller.
@expose(template="DAM.templates.config")
def config(self):
flash("Configuration")
tab1 = widgets.Widget(template="DAM.templates.static")
tab2 = widgets.Widget(template="DAM.templates.ip")
return dict(tab1=tab1,tab2=tab2,tabber=tabber)
3.In kid
<div>
<div class="tabber">
<div class="tabbertab">
${tab1.display()}
</div>
<div class="tabbertab">
${tab2.display()}
</div>
</div>
</div>
Error :
File "/usr/lib/python2.4/site-packages/kid-0.9.6-py2.4.egg/kid/parser.py",
line 221, in _coalesce
for ev, item in stream:
File
"/usr/lib/python2.4/site-packages/TurboGears-1.0.3.2-py2.4.egg/turbogears/view/templates/sitetemplate.py",
line 46, in _match_func
NameError: name 'tg_css' is not defined
Error location in template file '/home/antony/DAM/DAM/templates/config.kid'
between line 26, column 2 and line 28, column 2:
<div id="bodyarea">
${tab1.display()}
please any suggestion to solve this problem .
Antony
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---