[Zope3-Users] thoughts about z3c.form-package

Roger Ineichen dev at projekt01.ch
Tue Oct 14 16:01:49 EDT 2008


Hi garz

> Betreff: Re: [Zope3-Users] thoughts about z3c.form-package
> 
> 
> hey roger,
> 
> how does this pdf-thing look like? when the form is rendered, 
> is there called an adapter for IPageTemplate? or the question 
> differently posed, do you use the original forms 
> render-method? and how does the form respectivly the 
> fieldwidgets-manager knows that it is now supposed to render 
> a pdf-file?

for rendering PDF or any other output you can use the widgets
in dosplay mode. This offers the right value conversion between
your object and the output. 

if you take a look at z3c.rml and z3c.pdftemplate, you can see
the you can use a zpt template like concept for write PDF's.


> the applyChanges-function, you say, in this explicit 
> function-form, is a hook. how do i use it? you mean when i 
> create a new package with a new applyChanges-function and 
> create a new subclass of EditForm there too, then i dont have 
> to overwrite the applyChanges-method of the EditForm? hm... 
> when i think about it, this shouldnt even work? why is this a 
> hook? i dont get it.

ProbablyI don't understand it right. But if you ask why the
form module method called applyChanges is a hook the the answer
is:

This method can be used if you need them. This means if you 
write a custom action handler you can do something and 
later you can use the form.applyChanges method if needed.

By default the Editform does this, e.g. the form method
applyChanges uses the hook method applyChanges. 

Regards
Roger Ineichen

> regards garz
> --
> View this message in context: 
> http://www.nabble.com/thoughts-about-z3c.form-package-tp198692
92p19980863.html
> Sent from the Zope3 - users mailing list archive at Nabble.com.
> 
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
> 



More information about the Zope3-users mailing list