No project description provided
Project description
OARepo communities
Installation
To init custom fields, add them under COMMUNITIES_CUSTOM_FIELDS key to invenio.cfg, for example
from oarepo_communities.cf.permissions import PermissionsCF
from oarepo_communities.cf.aai import AAIMappingCF
COMMUNITIES_CUSTOM_FIELDS = [PermissionsCF("permissions"), AAIMappingCF("aai")]
COMMUNITIES_CUSTOM_FIELDS_UI = [{
"section": "settings",
"fields": [{
"field": "permissions",
"ui_widget": "Input",
"props": {
"label":"permissions dict",
}
}]
}]
and the init cli command: invenio communities custom-fields init
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oarepo_communities-5.0.5.tar.gz
(16.8 kB
view hashes)
Built Distribution
Close
Hashes for oarepo_communities-5.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c02c96badc9ba5a22728b839c1d47061dd0719f253e6b2d590fc03c7e17ed7d |
|
MD5 | 26d387232bf9a55e8902909f2c56ef5f |
|
BLAKE2b-256 | 89fed40a045d1ce92b0508d5d9b9a06a08c20a66bfcf9c4002c059f119ef0e34 |