Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.
/ raptus.rolefield Public archive

Provides two archetypes fields which assign local roles to one or multiple users

Notifications You must be signed in to change notification settings

Raptus/raptus.rolefield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

raptus.rolefield provides two archetypes fields which assign local roles to one or multiple users.

Example

RoleField(
    name='editor',
    required=1,
    acquire=False,
    role='Editor',
    write_permission=DelegateEditorRole,
    vocabulary=SomeVocabularyProvidingUserIds,
    widget=SelectionWidget(
        label=_('label_editor', default=u'Editor'),
    ),
),
MultiRoleField(
    name='reviewers',
    required=1,
    acquire=False,
    role='Reviewer',
    write_permission=DelegateReviewerRole,
    vocabulary=SomeVocabularyProvidingUserIds,
    widget=MultiSelectionWidget(
        label=_('label_reviewers', default=u'Rreviewers'),
    ),
),

About

Provides two archetypes fields which assign local roles to one or multiple users

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages