Can't set custom menu item class in zope.app.publisher's menu item directives

Bug #291865 reported by Dan Korostelev
2
Affects Status Importance Assigned to Milestone
Zope 3
Fix Released
Undecided
Unassigned
zope.app.publisher
Fix Released
Undecided
Unassigned

Bug Description

Currently, the zope.app.publisher's menuItem and subMenuItem directives create the menu items using standard BrowserMenuItem and BrowserSubMenuItem classes, and that can not be easily customized. However it would be very handy to be able to specify own menu item class in some cases. For example if we want to make a dynamic URL or somehow control item availability and selected status.

Revision history for this message
Dan Korostelev (nadako) wrote :

I just committed a patch with test for this in the trunk rev https://bugs.launchpad.net/zope3/+bug/291865. Please, review.

Changed in zope3:
status: New → Fix Committed
Revision history for this message
Dan Korostelev (nadako) wrote :

Oops, I mean rev 92812 :-)

Dan Korostelev (nadako)
Changed in zope.app.publisher:
status: New → Fix Committed
Revision history for this message
Dan Korostelev (nadako) wrote :

The fix was released

Changed in zope3:
status: Fix Committed → Fix Released
Changed in zope.app.publisher:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.