[Zope3-Users] Question about menu.py
Simon Elbaz
elbazsimon9 at gmail.com
Tue Feb 3 19:24:31 EST 2009
Hi,
I am trying to use zope3 menu in grok.
I have a question about the getMenuItems function in the file menu.py (
zope.app.publisher/trunk/src/zope/app/publisher/browser/menu.py).
My comprehension of the function is:
it tries to collect all the adapters of 'object' and 'request' providing
the interface returned by
self.getMenuItemType().
When I look to the getMenuItemType() function, it returns a utility (
return zope.component.getUtility(IMenuItemType, self.id)) and the
consequence is that the adapter lookup returns nothing in getMenuItems.
Is that a bug or I -surely- have missed something ?
Thanks for your explanation
Simon Elbaz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20090204/a7fcbb25/attachment.html
More information about the Zope3-users
mailing list