[Twisted-web] modifying button value

Mike Mueller pyp at gmx.net
Mon May 8 00:10:48 CDT 2006


Just trying out the nevow example

http://divmod.org/trac/attachment/wiki/DivmodNevow/FormHandling/Example1.1.tac.py


I would like to change the name of the submit button.
The produced html is value="Call".
I would like to have value="My own Name here".

The part of the example that renders the form is:

     def render_newsInputForm(self, ctx, data):
         return ctx.tag.clear()[
             webform.renderForms()
         ]

Can I set anything so that webform.renderForms() gives me a different 
button name?

Thanks.

Mike




More information about the Twisted-web mailing list