On Mon, Mar 03, 2014 at 01:37:41PM -0800, Greg Copeland wrote:
> My dictionary returned from my controller has:
> dict( form=MyGrid )
>
> My template has:
> ${form().display()}
Mine is
dict(form=MyGrid())
and
${form.display()}
> Which renders:
Did you get a bunch of javascript imports in the head of the page?
The html looks close to mine.
I think because you run the init method late (as in you do it at
template printing time) its too late to include the javascript.
As my code creates the instance at controller return time its enough
time for toscawidgets to inject its resources.
- Craig
--
Craig Small (@smallsees) 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.
For more options, visit https://groups.google.com/groups/opt_out.