[Zope-CMF] Re: Add forms and menus

Martin Aspeli optilude at gmx.net
Wed Jul 16 11:57:07 EDT 2008


Daniel Nouri <daniel.nouri at ...> writes:

> 
> Robert Niederreiter writes:
> 
> > Am Mittwoch, den 16.07.2008, 16:24 +0200 schrieb Daniel Nouri:
> >> Where would we need overrides.zcml?
> 
> > in the case where ICMFAddForm is no longer my interface to look up. then
> > i have to overwrite the traverser.
> 
> Why would ICMFAddForm no longer be the interface to look up?  It's the
> the only type of add form that promises to do something meaningful with
> the 'portal_type' attribute that's set on it in the traverser.

And even if it weren't - we shouldn't hardcode the traversal adapter. We should
make this a convenient implementation option. The actual URL of the add view
should configurable via a TALES expression, which means that it can be written
without the @@add bit.

Martin



More information about the Zope-CMF mailing list