[Zope3-dev] zcml: ForbiddenAttribute in menuItem filter
Tarek Ziadé
tziade at nuxeo.com
Tue May 10 10:48:03 EDT 2005
Hi,
I get a ForbiddenAttribute when I try to use a filter parameter in a
browser:menuItem
<browser:menuItem
menu="object"
title="cpsma_add_subfolder"
for=".interfaces.IMailFolder"
action="view?add_folder=1"
permission="cpsmailaccess.ViewMailBox"
filter="python:context.canCreateSubFolder()"
/>
It seems that the bound method is not callable, but I have declared the
object type (MailFolder)
as a content class :
<content class=".mailfolder.MailFolder">
<implements
interface="zope.app.annotation.interfaces.IAttributeAnnotatable"
/>
<implements
interface="zope.app.container.interfaces.IContentContainer"
/>
<require
permission="cpsmailaccess.ViewMailBox"
interface=".interfaces.IMailFolder"
/>
</content>
Anything missing ?
Regards,
Tarek
ps: i could have used context/canCreateSubFolder in the TALES condition
but I have other places where a python expression is needed.
--
Tarek ZIADE, Nuxeo SARL: Zope Service Provider.
Mail: tz at nuxeo.com - Tel: +33 (0)6 30 37 02 63
Nuxeo Collaborative Portal Server: http://www.nuxeo.com/cps
Gestion de contenu web / portail collaboratif / groupware / open source
More information about the Zope3-dev
mailing list