I have a controller like this:
@expose('.templates.employee.search')
def search(self, **kwargs):
return dict(f1=forms.emailsearchform, f2=forms.namesearchform)
My template is really boring:
${f1.display()}
${f2.display()}
Here's the (possible) bug. I changed my controller to return a list
of widgets, rather than separate widgets, like this:
@expose('.templates.employee.search')
def search(self, **kwargs):
return dict(flist=[forms.emailsearchform,
forms.namesearchform])
And I changed my template to look like this:
<div py:for="f in flist">${f.display()}</div>
I notice that in the second method, my template does not get the
required widget javascript files added to the page <head> section.
I'm reading the turbogears _process_output method now to try to figure
out what is going on.
Is this a known bug? Am I doing something wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---