Edgewall Software

Changes between Version 2 and Version 3 of ExtraPermissionsProvider


Ignore:
Timestamp:
Jun 3, 2011, 11:32:36 AM (11 years ago)
Author:
Remy Blank
Comment:

Minor fixes.

Legend:

Unmodified
Added
Removed
Modified
  • ExtraPermissionsProvider

    v2 v3  
    11== [source:trunk/tracopt/perm/config_perm_provider.py tracopt.perm.config_perm_provider.ExtraPermissionsProvider]
    22
    3 Optional component which makes it possible to easily add new permissionsto to a Trac environment. These can be used for example in configurable TracWorkflow``s, when one wants to add a permission specific to a transition, via the `.permissions` key.
     3Optional component which makes it possible to easily add new permissions to to a Trac environment. These can be used for example in configurable TracWorkflow``s, when one wants to add a permission specific to a transition, via the `.permissions` key.
    44
    55To add new permissions, create a new section `[extra-permissions]` in [TracIni#extra-permissions-section trac.ini]. Every entry in that section defines a meta-permission and a comma-separated list of permissions. For example:
     
    88extra_admin = extra_view, extra_modify, extra_delete
    99}}}
    10 This entry will define three new permissions `EXTRA_VIEW`, `EXTRA_MODIFY` and `EXTRA_DELETE`, as well as a meta-permissions `EXTRA_ADMIN` that grants all three permissions.
     10This entry will define three new permissions `EXTRA_VIEW`, `EXTRA_MODIFY` and `EXTRA_DELETE`, as well as a meta-permission `EXTRA_ADMIN` that grants all three permissions.
    1111
    1212If you don't want a meta-permission, start the meta-name with an underscore (`_`):