Пример #1
0
class RoleComprisingTwoPermissionsByClass(grok.Role):
    grok.name('ByClass')
    grok.permissions(FirstPermission, SecondPermission)
Пример #2
0
class Editor(grok.Role):
    grok.name('uvc.Editor')
    grok.permissions('uvc.AddContent', 'uvc.ViewContent', 'uvc.EditContent',
                     'uvc.AccessHomeFolder')
Пример #3
0
class RoleComprisingTwoPermissionsByName(grok.Role):
    grok.name('ByName')
    grok.permissions('first permission', 'second permission')
Пример #4
0
class PaintingOwner(grok.Role):
    grok.name('grok.PaintingOwner')
    grok.title('Painting Owner')
    grok.permissions('grok.ViewPainting', 'grok.EditPainting',
                     'grok.ErasePainting')
Пример #5
0
class User(grok.Role):
    grok.name('uvc.User')
    grok.permissions('zope.View')
Пример #6
0
class HomeFolderUser(grok.Role):
    grok.name('uvc.HomeFolderUser')
    grok.permissions('uvc.AccessHomeFolder', )
Пример #7
0
class MemberRole(grok.Role):
    grok.name('afpy.barcamp.Member')
    grok.title(_(u'Member of the meeting'))  # optional
    grok.permissions('afpy.barcamp.seances.list', 'afpy.barcamp.addseance',
                     'afpy.barcamp.can_attend')
Пример #8
0
class RolAdmin(grok.Role):
    """Rol de administrador"""
    grok.name('ct.adminrol')
    grok.permissions('ct.admin', 'ct.logueado')
Пример #9
0
class MyRole(grok.Role):
    grok.name('MyRole')
    grok.permissions(NotAPermissionSubclass)
Пример #10
0
class RolEmpleado(grok.Role):
    """Rol de empleado"""
    grok.name('ct.empleadorol')
    grok.permissions('ct.empleado', 'ct.logueado')
Пример #11
0
class BoneOwner(grok.Role):
    grok.name('grok.BoneOwner')
    grok.title('Bone Ownwer')
    grok.permissions('bone.gold')
Пример #12
0
class MasterUser(grok.Role):
    grok.name('uvc.MasterUser')
    grok.permissions('uvc.ManageCoUsers')
Пример #13
0
class SeanceLeaderRole(grok.Role):
    """role assigned to speakers on their own seances
    """
    grok.name('afpy.barcamp.SeanceLeader')
    grok.title(_(u'Leader of a seance'))  # optional
    grok.permissions('afpy.barcamp.editseance')
Пример #14
0
class Editor(grok.Role):
    grok.name('uvc.Editor')
    grok.permissions(View, PP, Add, Edit, AccessHomeFolder)