Skip to main content

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


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-4.0.13.tar.gz (13.4 kB view hashes)

Uploaded Source

Built Distribution

oarepo_communities-4.0.13-py3-none-any.whl (22.5 kB view hashes)

Uploaded Python 3

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