[Zope3-Users] Getting permissions for a class
Laurent Mignon
laurent.mignon at softwareag.com
Thu Jan 15 10:49:46 EST 2009
Laurent Mignon wrote:
> Hi,
>
> I need to retrieve the permissions list on a class. How can I do.
>
> I've a class LegisltavePeriod and I'v written the following lines in my
> zcml:
>
Sorry for the typo into the directive (the question remain)
> <five:class class=".legislativeperiod.LegislativePeriod">
<class class=".legislativeperiod.LegislativePeriod">
> <factory
> id="tabellio.legislativeperiod"
> title="Add a legislative period"/>
> <require
> permission="tabellio.legislativeperiod.legislativeperiod.Manage"
> set_schema=".interfaces.ILegislativePeriod"
> />
> <require
> permission="zope.View"
> interface=".interfaces.ILegislativePeriod"
> />
> </class>
>
> How can I get the list of permissions declared for my LegislativePeriod.
>
> Thanks,
>
> sagblmi
More information about the Zope3-users
mailing list