[Zope3-Users] more efficient role -> permission mapping in ZCML

Florian Lindner mailinglists at xgm.de
Wed Feb 22 16:14:20 EST 2006


Hello,
I'v a number of permissions (A, B, C, D) which I want to map to a number of 
roles (x, y, z).

x should have permission A, B, C, D
y should have A, B, C
z should have A

Is there a faster way of doing that in ZCML than

    <grant permission="A"
        role="x" />
    <grant permission="B"
        role="x" />
    <grant permission="C"
        role="x" />
    <grant permission="D"
        role="x" />

and so on....?

Thanks,

Florian


More information about the Zope3-users mailing list