Pre-release
This release is a pre-release and may not be stable for production use.
Introduction
============
An Archetypes field that manages local roles. It can be used to assign
specific local roles through the edit form.
Usage
-----
An example field definition
... RoleField(
... 'responsible,
... role = 'Owner',
... widget = SelectionWidget(
... label = 'Responsible',
... ),
... ),
The available parameters are:
- 'role': the managed role that will be assigned to users;
- 'target_expression': An expression returning the target object
where local roles should be assigned. If None (default), context
will be used as target.
- 'allow_protected_roles': Allow the user to change protected
roles for himself. Default is False.
- 'protected_roles': Roles that a user shouldn't be able to
change for himself, if 'allow_protected_roles' is True.
Default is ('Manager', 'Owner').
- 'filter_groups': Filter users/groups by group. If None, no
filter is made. Only used if vocabulary is None and so the
default vocabulary is used.
- 'principals': Possible values are 'users' (default), 'groups'
and 'all'. Only used if 'vocabulary' is None and so the default
vocabulary is used.
Read archetypes/rolefield/tests/rolefield.text for more details.
Installation
------------
Add archetypes.rolefield to your buildout configuration. Install the
product in Plone through the Add-on products control panel.
Credits
-------
Ricardo Alves <rsa at eurotux dot com>
Eurotux Development Team <udp at eurotux dot com>
License
-------
Read docs/LICENSE.GPL
Changelog
=========
0.1 - a1
----------------
- First working version with tests.
[igbun]
- Initial import
[igbun]
============
An Archetypes field that manages local roles. It can be used to assign
specific local roles through the edit form.
Usage
-----
An example field definition
... RoleField(
... 'responsible,
... role = 'Owner',
... widget = SelectionWidget(
... label = 'Responsible',
... ),
... ),
The available parameters are:
- 'role': the managed role that will be assigned to users;
- 'target_expression': An expression returning the target object
where local roles should be assigned. If None (default), context
will be used as target.
- 'allow_protected_roles': Allow the user to change protected
roles for himself. Default is False.
- 'protected_roles': Roles that a user shouldn't be able to
change for himself, if 'allow_protected_roles' is True.
Default is ('Manager', 'Owner').
- 'filter_groups': Filter users/groups by group. If None, no
filter is made. Only used if vocabulary is None and so the
default vocabulary is used.
- 'principals': Possible values are 'users' (default), 'groups'
and 'all'. Only used if 'vocabulary' is None and so the default
vocabulary is used.
Read archetypes/rolefield/tests/rolefield.text for more details.
Installation
------------
Add archetypes.rolefield to your buildout configuration. Install the
product in Plone through the Add-on products control panel.
Credits
-------
Ricardo Alves <rsa at eurotux dot com>
Eurotux Development Team <udp at eurotux dot com>
License
-------
Read docs/LICENSE.GPL
Changelog
=========
0.1 - a1
----------------
- First working version with tests.
[igbun]
- Initial import
[igbun]
Release files for archetypes.rolefield 0.1-a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| archetypes.rolefield-0.1-a1.tar.gz | 13.6 kB | Details |
Release files / archetypes.rolefield-0.1-a1.tar.gz
| Download URL | archetypes.rolefield-0.1-a1.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a86d558146f10e70a60648e0eb0db338c29da45a105f6c5046b96b49941d4d70
|
|
BLAKE2b-256 checksum How to use checksums |
9580e67ac026c087342517af32a9f2c06cd9318d26777c9d8295512193119b44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |