[Zope-dev] Proposal: zope.app.publisher refactoring

Martijn Faassen faassen at startifact.com
Tue Aug 25 12:43:55 EDT 2009


Dan Korostelev wrote:
> 2009/8/21 Dan Korostelev <nadako at gmail.com>:
> 
>> Browser view directives (browser:page and friends) - move this to some
>> "zope.browserpage" package and make its structure more clean, so
>> people could understand the magic of browser page class generation.
>> :-)
> 
> Silly me, I forgot that browser page directives have the "menu" and
> "title" arguments to integrate browser pages with menus!
> 
> But I'd like to see browser pages usable without using that browser
> menu implementation, so I want to discuss one more proposition: make
> browser page directives smarter, so they wouldn't depend hadly on
> menus and support menu item registration for pages only when
> "zope.browsermenu" is installed (and raise an error if browsermenu is
> not installed and user tried to use "menu" argument). This won't hurt
> any current zope.app.publisher's users, but can confuse new users who
> will be learning these zcml directives. But I am sure that good
> documentation can help here. :-)

+1 if we can make it smarter to break this dependency (but not too 
smart; I'm not sure how easy this would be).

Regadrs,

Martijn



More information about the Zope-Dev mailing list