On Sat, May 04, 2013 at 12:27:34AM +0200, Alessandro Molina wrote:
>    as you already noticed widgets are rendered in a different context from
>    the page templates, widgets templates are usually not meant for doing much
>    computation. You should prepare everything you need inside the template
>    inside the "prepare" method of the widget.
If you really need tg.url in your widget, do a hack like this in prepare
self.url = tg.url
the template can then use w.url

Alessandro is probably right though.

 - Craig

-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to