"Daniel Holth" writes: > I am trying to make a z3c form in Plone that returns a PDF depending > on the input. So far this is more or less what I have, but it seems > sub-optimal. For example, I can't just check self.form.results_data > after calling the default template.__on__(self)(self), because it > isn't there, which I found confusing.
I think you want to look at 'self.form_instance.result_data' instead. 'self.form' is the class. > Where is the default template? There must be a better place to > override the entire response? Hmm, you would probably be better off overriding FormWrapper's ``__call__``, and after you made a call to ``super()`` check ``self.form_instance`` for your variable, and return your PDF or the form depending on that. HTH, -- http://danielnouri.org _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
