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 details)

Uploaded Source

File details

Details for the file raptus.rolefield-1.1.zip.

File metadata

  • Download URL: raptus.rolefield-1.1.zip
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for raptus.rolefield-1.1.zip
Algorithm Hash digest
SHA256 0e826b159d8b82315d3393ebcf94d2324bdce73fd009a09b1c99ef4473ef0414
MD5 848d72b7a72ed716a93d742f8992c94c
BLAKE2b-256 319d2d5fef967207308eb6e7a54b0c0039cdb490dac6970893367cfa4034a760

See more details on using hashes here.

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