Re: [Zope3-Users] using filter in addMenuItem

2007-04-03 Thread Ivan Horvath
Dear Christophe, thank you for your answer, you're right, this way i get the container object. additionally permission needs to be added for this method. only one question remained unanswered. as i recognized zope3 collects always all addmenu items. this i assume, because the traversal exception

Re: [Zope3-Users] using filter in addMenuItem

2007-04-02 Thread Christophe Combelles
I think the context of an adding view is an object providing IAdding. The context of the context might be the container of your object. Try to set isNeedtoDisplay as the container's method, and maybe "context/context/isNeedtoDisplay" as your filter. Christophe Ivan Horvath a écrit : Dear All,

[Zope3-Users] using filter in addMenuItem

2007-04-02 Thread Ivan Horvath
Dear All, it seems that i have to use filter attribute in browser:addMenuItem directive. i couldn't find any usable help how to use it, and my trials are failed so far. this is the menu declaration in zcml: i receive always a TraversalError exception. i don't know where shall i put the isN