Ticket #10022 (closed Bug: fixed)
plone.z3cform.layout.FormWrapper contents method doesn't work anymore
|Reported by:||petschki||Owned by:||nouri|
i have a z3cform in a viewlet and used the FormWrapper class something like this:
from plone.app.layout.viewlets import ViewletBase from plone.z3cform import layout class CouponCodeFormViewlet(ViewletBase, layout.FormWrapper): """ """ index = ViewPageTemplateFile('couponcode_viewlet.pt') form = CouponCodeForm # subclass of z3c.form.form.Form
until version 0.5.7 of plone.z3cform i get the form when i call "view/contents" in the viewlet template. since of version 0.5.8 this doesn't work anymore. i think it's because the z2.switch_on has been moved to the update() function ant this is not called anywhere?