|
From: Tracy S. R. <tr...@re...> - 2004-05-18 14:06:08
|
I'm adding a submit button before processing, i.e., class MySchemaTemp(MySchema): submit = SubmitButton(...) processor = formprocessor(MySchemaTemp) I'm not sure of another way to do it... --Tracy On May 13, 2004, at 10:46 AM, Greg Unrein wrote: > I have started learning FormEncode and I am really impressed. Thank you > for creating this tool. I was unable to figure out one thing, though: > how to get a submit button (or reset button) generated along with the > rest of the form when creating a view from a Schema. For example, > > processor = formprocessor.FormProcessor(MySchema) > ... > processor.renderForm(formData, action = '/', errors = errors) > > The return of the renderForm call is the form I want, but it has no > submit button. I can add one by subclassing htmlview.SchemaLayout and > inserting the button, but I thought there might be another way that I > just couldn't figure out. |