Five 1.5.5 and menuItem - problem with 'filter' parameter
Hi, Am I doing anything wrong or filter parameter of browser:menuItem is just ignored? I have that problem in Plone but I suspect CMF ActionsTool if not Five itself. <browser:menuItem for="Products.Archetypes.interfaces.IBaseObject" menu="object" title="synchronize" action="synchronizeObject" permission="cmf.ModifyPortalContent" filter="string: object/whatever" /> I tried "whatever" Python Script, registered page view, etc. No success. Pawel
Pawel Lewicki wrote:
Hi, Am I doing anything wrong or filter parameter of browser:menuItem is just ignored? I have that problem in Plone but I suspect CMF ActionsTool if not Five itself.
<browser:menuItem for="Products.Archetypes.interfaces.IBaseObject" menu="object" title="synchronize" action="synchronizeObject" permission="cmf.ModifyPortalContent" filter="string: object/whatever" />
I tried "whatever" Python Script, registered page view, etc. No success.
You're using it wrong. The "string: object/whatever" expression yields a string containing "object/whatever", instead of calling object.whatever(). To achieve that, you should simply say "object/whatever" in the filter argument.
Philipp von Weitershausen pisze:
Pawel Lewicki wrote:
Hi, Am I doing anything wrong or filter parameter of browser:menuItem is just ignored? I have that problem in Plone but I suspect CMF ActionsTool if not Five itself.
<browser:menuItem for="Products.Archetypes.interfaces.IBaseObject" menu="object" title="synchronize" action="synchronizeObject" permission="cmf.ModifyPortalContent" filter="string: object/whatever" />
I tried "whatever" Python Script, registered page view, etc. No success.
You're using it wrong. The "string: object/whatever" expression yields a string containing "object/whatever", instead of calling object.whatever(). To achieve that, you should simply say "object/whatever" in the filter argument.
Hi, I get KeyError: 'object' that way. Pawel
Pawel Lewicki pisze:
Philipp von Weitershausen pisze:
Pawel Lewicki wrote:
Hi, Am I doing anything wrong or filter parameter of browser:menuItem is just ignored? I have that problem in Plone but I suspect CMF ActionsTool if not Five itself.
<browser:menuItem for="Products.Archetypes.interfaces.IBaseObject" menu="object" title="synchronize" action="synchronizeObject" permission="cmf.ModifyPortalContent" filter="string: object/whatever" />
I tried "whatever" Python Script, registered page view, etc. No success.
You're using it wrong. The "string: object/whatever" expression yields a string containing "object/whatever", instead of calling object.whatever(). To achieve that, you should simply say "object/whatever" in the filter argument.
Hi, I get KeyError: 'object' that way.
Pawel
Full traceback: http://paste.plone.org/18260 Pawel
participants (2)
-
Pawel Lewicki -
Philipp von Weitershausen