On Aug 20, 2007, at 9:45 AM, Christian Zagrodnick wrote:


I just figured, that the browser:menuItem cannot be registered for classes. But you can with browser:page. I think if a browser:page can be registered for a class a menuItem should support this, too.

Also a <browser:page for="someclass" menu="..." /> will break on getting the menu items because the implementation doesn't support classes.

Should we fix that?

Yes. Any time we have a for, we should allow interfaces or classes.

BTW, you may soon discover what I discovered the other day, which is that the tiny menu framework used for zmi_views doesn't work with menu items registered for classes. Someone should fix that too. :)


Jim Fulton                      mailto:[EMAIL PROTECTED]                Python 
CTO                             (540) 361-1714                  
Zope Corporation        http://www.zope.com             http://www.zope.org

Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to