On Sat, Feb 20, 2010 at 9:59 AM, Daniel Campbell
<[email protected]> wrote:
> I hadn't considered extending the Form class on my own. How would you
> do that?

class MyForm(web.form.Form):
    def render(self):
        # override parent's render method

some_form = MyForm(
    ....
)

f = some_form()
f.render() -> calls our own render instead of the original render

-- 
Branko Vukelić

http://foxbunny.tumblr.com/
http://www.flickr.com/photos/16889...@n04/
http://www.twitter.com/foxbunny
http://github.com/foxbunny

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to