Name | oarepo-communities JSON |
Version |
5.1.10
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2025-03-03 11:37:50 |
maintainer | None |
docs_url | None |
author | None |
requires_python | None |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# OARepo communities
## Installation
To init custom fields, add them under COMMUNITIES_CUSTOM_FIELDS key to invenio.cfg,
for example
``` python
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
Raw data
{
"_id": null,
"home_page": null,
"name": "oarepo-communities",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/12/47/5134c30d50967401537c468e644a531298a4b15b4bc7ec3a350d0121ce46/oarepo_communities-5.1.10.tar.gz",
"platform": null,
"description": "# OARepo communities\n\n## Installation\n\nTo init custom fields, add them under COMMUNITIES_CUSTOM_FIELDS key to invenio.cfg, \nfor example\n\n\n``` python\nfrom oarepo_communities.cf.permissions import PermissionsCF\nfrom oarepo_communities.cf.aai import AAIMappingCF\n\nCOMMUNITIES_CUSTOM_FIELDS = [PermissionsCF(\"permissions\"), AAIMappingCF(\"aai\")]\nCOMMUNITIES_CUSTOM_FIELDS_UI = [{\n \"section\": \"settings\",\n \"fields\": [{\n \"field\": \"permissions\",\n \"ui_widget\": \"Input\",\n \"props\": {\n \"label\":\"permissions dict\",\n }\n }]\n }]\n```\nand the init cli command:\ninvenio communities custom-fields init\n",
"bugtrack_url": null,
"license": null,
"summary": null,
"version": "5.1.10",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "b250e6971b024159c411eb7e69ce3646e2a66fff563ce5a00cca3f80c378024a",
"md5": "f501dcd6c2f1bd7a9743caa1ad7cc6c0",
"sha256": "1ba8b1d170f579acc453e7e68f5c5bb1a87ef3f4e0a396aac0cc528faecd07cb"
},
"downloads": -1,
"filename": "oarepo_communities-5.1.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f501dcd6c2f1bd7a9743caa1ad7cc6c0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 98991,
"upload_time": "2025-03-03T11:37:47",
"upload_time_iso_8601": "2025-03-03T11:37:47.831954Z",
"url": "https://files.pythonhosted.org/packages/b2/50/e6971b024159c411eb7e69ce3646e2a66fff563ce5a00cca3f80c378024a/oarepo_communities-5.1.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "12475134c30d50967401537c468e644a531298a4b15b4bc7ec3a350d0121ce46",
"md5": "93eb08574ee78e4cf897d4b9683c648d",
"sha256": "4b91c28b5e067beee6a627e6d7a59f742007fe316e45f7932602014ccb842311"
},
"downloads": -1,
"filename": "oarepo_communities-5.1.10.tar.gz",
"has_sig": false,
"md5_digest": "93eb08574ee78e4cf897d4b9683c648d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 59129,
"upload_time": "2025-03-03T11:37:50",
"upload_time_iso_8601": "2025-03-03T11:37:50.754610Z",
"url": "https://files.pythonhosted.org/packages/12/47/5134c30d50967401537c468e644a531298a4b15b4bc7ec3a350d0121ce46/oarepo_communities-5.1.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-03-03 11:37:50",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "oarepo-communities"
}