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.0.tar.gz
(15.2 kB
view hashes)
Built Distribution
Close
Hashes for oarepo_communities-5.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1bafe1173005b39a3c20532e1c0bd6d2ec356e373e56a10cd88a73d98815b6b |
|
MD5 | fdd80b4eba8f1e124ce2098dfe88bbb0 |
|
BLAKE2b-256 | 6879d18f98c8f938f5789c491fe5b41ccc1a73c52d53ac5a69af753de2597745 |