{ "info": { "author": "Praekelt Foundation", "author_email": "dev@praekelt.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "Django Sharing\n==============\n\n**Django row level sharing app limiting content access by user in Django admin.**\n\nFeatures\n--------\n#. Provides admin view, change and delete permissions, restricting content access and limiting available actions per user.\n#. Filters ``ForeignKey`` fields by view permissions. \n#. Filters ``ManyToManyField`` fields by view permissions. \n#. Automatically enables sharing on all admin classes (optional). \n\nInstallation\n------------\n\n#. Install or add django-sharing to your python path.\n#. Add ``'sharing'`` to the project's ``INSTALLED_APPS`` setting.\n#. Add ``'sharing.backends.SharingBackend'`` to the project's ``AUTHENTICATION_BACKENDS`` setting.\n\nUsage\n-----\n\nIn order for django-sharing to limit content access your various admin classes need to include the ``ShareAdminMixin`` class. For example::\n \n # admin.py\n from django.contrib import admin\n from sharing.admin import ShareAdminMixin\n\n class ArticleAdmin(ShareAdminMixin, admin.ModelAdmin):\n pass\n\n admin.site.register(Article, ArticleAdmin)\n\nIt is crucial for ``ShareAdminMixin`` to be the first ancestor class in the admin class' definition. \n\nAlternatively you can automatically enable sharing for all models registered with the admin site. django-sharing includes an ``admin_mixin_share`` method which will apply the ``ShareAdminMixin`` class to all models registered with the admin site. Call the method *after* ``admin.autodiscover()`` in urls.py::\n\n # urls.py\n from django.conf.urls.defaults import *\n from django.contrib import admin\n \n import sharing\n\n admin.autodiscover()\n sharing.admin_mixin_share()\n\n urlpatterns = patterns('',\n (r'^admin/', include(admin.site.urls)),\n )\n\nOnce the ``ShareAdminMixin`` class has been applied your admin change views should include ``Group`` and ``User`` share inlines and restrict content appropriately.\n\nAuthors\n=======\n\nPraekelt Foundation\n-------------------\n* Shaun Sephton\n\nChangelog\n=========\n0.0.2\n-----\n#. Resolved class name issue on save_model.\n\n\n0.0.1\n-----\n#. Initial release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/praekelt/django-sharing", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-sharing", "package_url": "https://pypi.org/project/django-sharing/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-sharing/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/praekelt/django-sharing" }, "release_url": "https://pypi.org/project/django-sharing/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Django row level object sharing app.", "version": "0.0.2" }, "last_serial": 4623993, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b16dad6cd180c36aae08190cab22080b", "sha256": "d98a9ab8ddcc6dc81f56bd52f8516c2d9f4e3f32e09cf9ac968b28e5c4657695" }, "downloads": -1, "filename": "django_sharing-0.0.1-py2.5.egg", "has_sig": false, "md5_digest": "b16dad6cd180c36aae08190cab22080b", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 15016, "upload_time": "2010-09-29T12:02:49", "url": "https://files.pythonhosted.org/packages/ae/d2/020e4435a643d24dfa0fd476633a497a3909192a516d6b4974517a905148/django_sharing-0.0.1-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "d8dffacf6d19b06dc01eba57cbd6b2ac", "sha256": "cbff8bffc9e1ea008ea706a86ec797f890499f1354817ab7ee7caace5da582a3" }, "downloads": -1, "filename": "django_sharing-0.0.1-py2.6.egg", "has_sig": false, "md5_digest": "d8dffacf6d19b06dc01eba57cbd6b2ac", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 14997, "upload_time": "2010-09-29T12:02:12", "url": "https://files.pythonhosted.org/packages/59/11/8eacc0a2bf5dfd8bda5343a759c783bb21384c209699c5740a0cf10cf261/django_sharing-0.0.1-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "5662ff45e6c945e2f2864f0ea2e0032b", "sha256": "10faad32fd40bf7cc9ed204852eddd2130cc1767f2f9d94f1be84885d5759ce6" }, "downloads": -1, "filename": "django-sharing-0.0.1.tar.gz", "has_sig": false, "md5_digest": "5662ff45e6c945e2f2864f0ea2e0032b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8142, "upload_time": "2010-09-29T12:02:16", "url": "https://files.pythonhosted.org/packages/a0/d3/2187e7175d6f606e96ff18a2f7fd5bb533108b8f1ef6b0bd43c3d52e4686/django-sharing-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "b8d3566885f9750494867852f21b7e6a", "sha256": "9ecad0856170d862b72cd07ae7ae5559063e84af166928a8953bfadf44debe99" }, "downloads": -1, "filename": "django_sharing-0.0.2-py2.5.egg", "has_sig": false, "md5_digest": "b8d3566885f9750494867852f21b7e6a", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 15043, "upload_time": "2010-09-30T12:37:16", "url": "https://files.pythonhosted.org/packages/63/05/d9cab0d45f79404c459444377e1eeb3d2f9584a90667de060cc35c9cdc07/django_sharing-0.0.2-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "d7aab6f8972def1ef453aa61fac6e1c6", "sha256": "72369267bbacdfbb65a6cb6db3b0fa416644f3a0f0937888b4b2e79851bdfe72" }, "downloads": -1, "filename": "django_sharing-0.0.2-py2.6.egg", "has_sig": false, "md5_digest": "d7aab6f8972def1ef453aa61fac6e1c6", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 15024, "upload_time": "2010-09-30T12:34:45", "url": "https://files.pythonhosted.org/packages/85/68/f2e92e62b4ce9a424c1e2a2b85eeb7767975e8076aede1906568dc543862/django_sharing-0.0.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "c0afdc38c5c44487318554c3fe6827b9", "sha256": "007147c77910c3346f9028895221c9b8778ed86c197857f43371030d56a64d9d" }, "downloads": -1, "filename": "django-sharing-0.0.2.tar.gz", "has_sig": false, "md5_digest": "c0afdc38c5c44487318554c3fe6827b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8194, "upload_time": "2010-09-30T12:34:47", "url": "https://files.pythonhosted.org/packages/0e/d0/1e8e0f9ad5af82a4d4c9b3056cb793b72c071da4c9d3ed864097395fc8b1/django-sharing-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b8d3566885f9750494867852f21b7e6a", "sha256": "9ecad0856170d862b72cd07ae7ae5559063e84af166928a8953bfadf44debe99" }, "downloads": -1, "filename": "django_sharing-0.0.2-py2.5.egg", "has_sig": false, "md5_digest": "b8d3566885f9750494867852f21b7e6a", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 15043, "upload_time": "2010-09-30T12:37:16", "url": "https://files.pythonhosted.org/packages/63/05/d9cab0d45f79404c459444377e1eeb3d2f9584a90667de060cc35c9cdc07/django_sharing-0.0.2-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "d7aab6f8972def1ef453aa61fac6e1c6", "sha256": "72369267bbacdfbb65a6cb6db3b0fa416644f3a0f0937888b4b2e79851bdfe72" }, "downloads": -1, "filename": "django_sharing-0.0.2-py2.6.egg", "has_sig": false, "md5_digest": "d7aab6f8972def1ef453aa61fac6e1c6", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 15024, "upload_time": "2010-09-30T12:34:45", "url": "https://files.pythonhosted.org/packages/85/68/f2e92e62b4ce9a424c1e2a2b85eeb7767975e8076aede1906568dc543862/django_sharing-0.0.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "c0afdc38c5c44487318554c3fe6827b9", "sha256": "007147c77910c3346f9028895221c9b8778ed86c197857f43371030d56a64d9d" }, "downloads": -1, "filename": "django-sharing-0.0.2.tar.gz", "has_sig": false, "md5_digest": "c0afdc38c5c44487318554c3fe6827b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8194, "upload_time": "2010-09-30T12:34:47", "url": "https://files.pythonhosted.org/packages/0e/d0/1e8e0f9ad5af82a4d4c9b3056cb793b72c071da4c9d3ed864097395fc8b1/django-sharing-0.0.2.tar.gz" } ] }