[Zope3-Users] How do I get the Interfaces in right order?
Johan Carlsson
johanc at easypublisher.com
Mon Jul 18 12:49:52 EDT 2005
Apparently menus are sorted first on the order Interfaces are defined
(at least as returned by providedBy(removeSecurityProxy(object)).__iro__).
But how can I control that order?
Also, which maybe is more of a question for the zope3 developers
which I assume is on this list as well :-), woundn't it be a
good idea to have someway of overriding the order of menus.
Maybe just swaping the order of the sorting items from:
(ifaces.index(item._for or Interface), item.order, item.title, item)
to:
(item.order, ifaces.index(item._for or Interface), item.title, item)
But order doesn't seem to be implemented everywhere?
For instance not all ZCML directives that implement the menu (MenuField)
implemets the order field?
Regards,
Johan
--
Johan Carlsson Tel: + 46 8 31 24 94
Colliberty Mob: + 46 70 558 25 24
Torsgatan 72 Email: johanc at easypublisher.com
SE-113 37 STOCKHOLM
More information about the Zope3-users
mailing list