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

Dan Korostelev nadako at gmail.com
Fri Aug 21 17:38:21 EDT 2009


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. :-)

-- 
WBR, Dan Korostelev


More information about the Zope-Dev mailing list