class RoleComprisingTwoPermissionsByClass(grok.Role): grok.name('ByClass') grok.permissions(FirstPermission, SecondPermission)
class Editor(grok.Role): grok.name('uvc.Editor') grok.permissions('uvc.AddContent', 'uvc.ViewContent', 'uvc.EditContent', 'uvc.AccessHomeFolder')
class RoleComprisingTwoPermissionsByName(grok.Role): grok.name('ByName') grok.permissions('first permission', 'second permission')
class PaintingOwner(grok.Role): grok.name('grok.PaintingOwner') grok.title('Painting Owner') grok.permissions('grok.ViewPainting', 'grok.EditPainting', 'grok.ErasePainting')
class User(grok.Role): grok.name('uvc.User') grok.permissions('zope.View')
class HomeFolderUser(grok.Role): grok.name('uvc.HomeFolderUser') grok.permissions('uvc.AccessHomeFolder', )
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')
class RolAdmin(grok.Role): """Rol de administrador""" grok.name('ct.adminrol') grok.permissions('ct.admin', 'ct.logueado')
class MyRole(grok.Role): grok.name('MyRole') grok.permissions(NotAPermissionSubclass)
class RolEmpleado(grok.Role): """Rol de empleado""" grok.name('ct.empleadorol') grok.permissions('ct.empleado', 'ct.logueado')
class BoneOwner(grok.Role): grok.name('grok.BoneOwner') grok.title('Bone Ownwer') grok.permissions('bone.gold')
class MasterUser(grok.Role): grok.name('uvc.MasterUser') grok.permissions('uvc.ManageCoUsers')
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')
class Editor(grok.Role): grok.name('uvc.Editor') grok.permissions(View, PP, Add, Edit, AccessHomeFolder)