[Zope3-Users] Error when calling addform

Marius Gedminas mgedmin at b4net.lt
Thu Feb 15 09:58:45 EST 2007


On Tue, Feb 13, 2007 at 07:15:11PM +0100, David Johnson wrote:
> I thought  zope.formlib was more complex.

That may be true, under the hood, but it is certainly simpler to use.

I never fully understood how to use (and extend) forms generated by ZCML
<addform>/<editform> directives.

> As I understand you must  
> create custom browser classes,

True.

> and page templates.

That is not necessary.

> Then you must  
> register those with a page or view ZCML browser directive, each of  
> which is more complicated than the addform.

The initial complexity may be a little higher, but you get a flexible
solution that scales well when you need to change something.

Form directives may work well for trivial cases, but they don't scale
when you need to change things.

> My point is that if there is something new here, I would like to  
> learn. :)

You will not regret learning zope.formlib.

Marius Gedminas
-- 
"Linux was made by foreign terrorists to take money from true US companies
like Microsoft." -Some AOL'er.
"To this end we dedicate ourselves..." -Don
(From the sig of "Don" <don at cs.byu.edu>)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20070215/341e4f7b/attachment-0001.bin


More information about the Zope3-users mailing list