ckanext-acl-0.1.2
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ckanext-acl-0.1.2 |
| نام | ckanext-acl |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com//ckanext-acl |
| آدرس اینترنتی | https://pypi.org/project/ckanext-acl/ |
| مجوز | AGPL |
=============
ckanext-acl
=============
.. Put a description of your extension here:
What does it do? What features does it have?
Consider including some screenshots or embedding a video!
Implentation of ACL for ckan.
When extension enabled, new tab `Permissions` added to admin interface.
Here you can manage user permissions on per-user level.
In order to add new managed permission, one should implement ``ckanext.acl.interfaces.IACL``
and define ``update_permission_list`` method in plugin and change ``perm`` - first positional argument
passed into this method. ``perms`` is ``ckanext.acl.access_permissions.AccessPermissions`` object so
you can check available actions there.
Example of code that you can use in your plugin(will allow any user to create new organization)::
from ckanext.acl.interfaces import IACL
plugins.implements(IACL)
# IACL
def update_permission_list(self, perms):
perms.create_permission('organization_create')
نحوه نصب
نصب پکیج whl ckanext-acl-0.1.2:
pip install ckanext-acl-0.1.2.whl
نصب پکیج tar.gz ckanext-acl-0.1.2:
pip install ckanext-acl-0.1.2.tar.gz