Skip to main content

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

Project description

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'),
    ),
),

Changelog

1.1 (2014-12-05)

  • Default role acquisition now gets the matching role of the closest parent object

1.0b1 - (2010-10-21)

  • First public release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

raptus.rolefield-1.1.zip (11.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page