[Product-Developers] Re: z3c form in a viewlet

Daniel Nouri daniel.nouri at gmail.com
Tue Oct 21 17:21:51 UTC 2008


cswank <craig_swank at nrel.gov> writes:

> Thanks, Daniel.  I tried to implement what you suggested and am still running
> into problems.  
>
> First of all, when I overwrite the viewlet's __call__ method, it does not
> get called.  So instead I tried creating a method and calling it from the
> template for the viewlet.  I set a ipdb trace there and tried following what
> they do in the z3c.form doctest to create a form and get the html from it:

I forgot you need to call plone.z3cform.z2.switch_on.  You may also want
to look at how it's done in plone.z3cform.layout (or use that
altogether, and forget about switch_on).


-- 
Daniel Nouri - http://danielnouri.org





More information about the Product-Developers mailing list