[Zope3-Users] z3c:layout - not working with z3c.form.EditForm
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Jan 29 09:39:51 EST 2008
On Tuesday 29 January 2008, kevin gill wrote:
> In answer to my own question, the EditForm must also inherit from the
> z3c.formuilayout.FormLayoutSupport class. This code now works:
>
> from z3c.form import form
> from z3c.formui import layout
>
> class IndexForm(layout.FormLayoutSupport, form.EditForm):
> pass
BTW, there is also z3c.formui.form that also defines an EditForm class that
does the form layout support mixin for you. It also prevents a nasty
recursion error when something goes wrong.
Regards,
Stephan
--
Stephan Richter
Web Software Design, Development and Training
Google me. "Zope Stephan Richter"
More information about the Zope3-users
mailing list