Hi,
i recently ported my kid templates to genshi. All works fine but my
forms which are TG widgets. Instead of diplaying a form, genshi just
renders an
<Element form at some_hex_value>
My forms worked with kid. Here's how i defined my forms and put them
into my templates:
Form definition:
form = widgets.TableForm(
fields = [
widgets.TextField(name="title"),
widgets.TextArea(name="data", attrs={'rows':10, 'cols':
60})
],
action = "/save"
)
i pass it to the template as follows (return value of the controller
method):
return dict(form = form)
and in the kid template ${form.display()} works without problems.If i
use the same ${form.display()} in Genshi, the output looks like the
message above.
I know that it is encouraged to use ToscaWidgets, but i also read
somewhere that TG widgets do work with genshi, but how exaclty? 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
-~----------~----~----~----~------~----~------~--~---