ob1.data schrieb:
> I've removed and re-installed my virtualenv as described
> in the thread ImportError: no module named matplotlib
> 
> Sadly, I still get the tg undefined error :(
> 
> Strangely, if I uncomment the link to the css stylesheet
> the now rather plain Welcome page of my Wiki-20 site gets
> through the next occurences of tg.url in the mainmenu list
> without the same error.  The only difference I can see is
> that eg. <a href="${tg.url('/about')}" link has class="${...
> and is in the <body> whereas the offending <link rel with
> href="${tg.url('/css/style.css')}" is in the <head> section.
> 
> But it's only the link to my woeful widget form that gives
> me the error "tg not defined" in master.html and so I think
> the problem is probably me doing something wrong with the
> widget form but the error thrown is misleading.
> 
> It seems to me the offending piece of code was in the
> template where I had
> <body>
>     <p py:content="form.display(submit_text='Yes')">
>        Widget Form</p>
> giving me UndefinedError: "tg" not defined
> 
> At this point, perhaps I should refer back to:
> "Trying to inject Dojo resources with ToscaWidgets"

How does the widget's template look?

Diez

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