{ "info": { "author": "Rodrigo Machado", "author_email": "rcmachado@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7" ], "description": "===============\ndjango-pieguard\n===============\n\ndjango-pieguard is a simple authorization class for tastypie that uses\ndjango-guardian to handle object permissions.\n\nThis was inspired by gist https://gist.github.com/7wonders/6557760.\n\nRequirements\n------------\n\n* Python 2.7+\n* Django_ 1.7\n* django-guardian_ 1.2.4\n* tastypie_ 0.12.1\n\nNot tested in other versions yet.\n\nQuickstart\n----------\n\nInstall django-pieguard:\n\n .. code-block:: shell\n\n pip install django-pieguard\n\nThen use it in a tastypie project:\n\n .. code-block:: python\n\n from pieguard.authorization import GuardianAuthorization\n from tastypie.resources import Resource\n from django.db import models\n\n class MyModel(models.Model):\n class Meta:\n permissions = (\n ('view_mymodel', 'View my model'),\n )\n\n class MyResource(ModelResource):\n class Meta:\n authorization = GuardianAuthorization\n # ... your other options\n\nNotes on permissions\n--------------------\n\ndjango-pieguard uses a special `view_modelname` permission to control if user\ncan view that resource or not. As Django only creates `add`, `change` and\n`delete` permissions by default, you need to add the relevant permission on\nyour model Meta class.\n\nTODO\n----\n\n* Tests\n* Docs\n* Python 3 official support\n\nLicense\n-------\n\nThis work is licensed under MIT license.\n\n.. _Django: http://www.djangoproject.com\n.. _tastypie: https://github.com/toastdriven/django-tastypie\n.. _django-guardian: https://github.com/lukaszb/django-guardian\n\n\n\n\nHistory\n-------\n\n0.0.1 (2014-11-29)\n++++++++++++++++++\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rcmachado/django-pieguard", "keywords": "django-pieguard", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-pieguard", "package_url": "https://pypi.org/project/django-pieguard/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-pieguard/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rcmachado/django-pieguard" }, "release_url": "https://pypi.org/project/django-pieguard/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "django-pieguard is a simple authorization class for tastypie that uses django-guardian to handle object permissions.", "version": "0.0.1" }, "last_serial": 1324883, "releases": { "0.0.1": [] }, "urls": [] }