{ "info": { "author": "Moccu GmbH & Co. KG", "author_email": "info@moccu.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "================\ndjango-legaltext\n================\n\n.. image:: https://badge.fury.io/py/django-legaltext.svg\n :target: https://pypi.python.org/pypi/django-legaltext\n :alt: Latest PyPI version\n\n.. image:: https://travis-ci.org/moccu/django-legaltext.svg?branch=master\n :target: https://travis-ci.org/moccu/django-legaltext\n :alt: Latest Travis CI build status\n\n\nLegaltext is a Django application to help managing legal text versioning (e.g.\nterms of condition, pr privacy policy). It also supports versioning of the\ncorresponding checkbox labels.\n\n\nFeatures\n========\n\nThe application consists of multiple parts and helpers:\n\n* Models to maintain legal texts, their versions and checkboxes\n* Model field to store the accepted version of a legal text (with support to\n auto-fetched default of current version)\n* Form field to render the widget which outputs the configured checkboxes just\n using the legal text slug\n* Admin interface to maintain the legal texts, adding new version with prefilling, and export\n* Templatetag legaltext_url\n\n\nInstallation\n============\n\nrequirements.txt\n~~~~~~~~~~~~~~~~\n\nJust add the following PyPI package to your requirements.txt\n::\n\n django-legaltext\n\n\nsettings.py\n~~~~~~~~~~~\n\nTo activate the application, add the following two packages to your `INSTALLED_APPS`\n::\n\n INSTALLED_APPS = (\n ...\n 'floppyforms', # needed for widget rendering\n 'markymark', # required for markdown rendering\n 'legaltext',\n )\n\n\nurls.py\n~~~~~~~\n\nTo register the url to output the legal texts, add the following to your `urls.py`.\n::\n\n urlpatterns = [\n ...\n url(r'^legaltext/', include('legaltext.urls')),\n ]\n\n\nUsage\n=====\n\nPlease refer to the examples to learn how to use the application.\n\nYou just need to add a new model field to your models and set the correct formfield\nin the corresponding forms.\n\n\n::\n\n class YourModel(models.Model):\n ...\n\n accepted_legaltext = LegalTextField('some-unique-slug')\n\n\n::\n\n class YourForm(forms.ModelForm):\n\n def __init__(self, *args, **kwargs):\n super().__init__(*args, **kwargs)\n self.fields['accepted_legaltext'] = LegalTextFormField('some-unique-slug')\n\n\nMake sure that you use the same slug on both (model and form) field.\n\n\nCustomization\n=============\n\nThere are some more settings you can set to change the applcation\n\n* `LEGALTEXT_ANCHOR_CLASS`\n Add an additional css class the the rendered anchor-span when using [anchor:foo]\n* `LEGALTEXT_VIEW_TEMPLATE`\n Change the template which is used to in the view to output the legal text\n* `LEGALTEXT_VIEW_TEMPLATE_OVERRIDES`\n Choose a different template to use in views for specific slugs\n* `LEGALTEXT_WIDGET_TEMPLATE`\n Change the template which is used to in the widget to output the checkboxes\n* `LEGALTEXT_WIDGET_TEMPLATE_OVERRIDES`\n Choose a different template to use in widget for specific slugs\n* `LEGALTEXT_WIDGET_ATTRS`\n Add extra attributes to checkbox input elements\n* `LEGALTEXT_SILENCE_TEMPLATE_ERRORS`\n Silence errors for legaltext_url templatetag if legaltext does not exist\n\n\nResources\n=========\n\n* `Code `_\n* `Usage example `_\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/moccu/django-legaltext/", "keywords": "legaltext", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-legaltext", "package_url": "https://pypi.org/project/django-legaltext/", "platform": "", "project_url": "https://pypi.org/project/django-legaltext/", "project_urls": { "Homepage": "https://github.com/moccu/django-legaltext/" }, "release_url": "https://pypi.org/project/django-legaltext/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "django-legaltext helps to manage legal text versioning.", "version": "0.3.0" }, "last_serial": 3210330, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1a556c40a1a44c3be0ae276d1de877ed", "sha256": "b2257dffa4a9666ea349154e2c5ac5a9f89a9478883e60b02c06f484279984c8" }, "downloads": -1, "filename": "django_legaltext-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1a556c40a1a44c3be0ae276d1de877ed", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 16601, "upload_time": "2017-08-04T08:20:59", "url": "https://files.pythonhosted.org/packages/63/20/52b02783cbb7054e2cd613a142cc79a9d0ece738500fb542de2b2d8179a5/django_legaltext-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9704aeae4c6bd7df5493c69ba046793e", "sha256": "e77d88177a39273093315336502c59e09e684cdbcd81a13dbd3df5228e217759" }, "downloads": -1, "filename": "django-legaltext-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9704aeae4c6bd7df5493c69ba046793e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12790, "upload_time": "2017-08-04T08:20:57", "url": "https://files.pythonhosted.org/packages/a3/c0/d055f6ebfcf0c71222d03d17502761460ff513958e0cf1d83b23be3a0d18/django-legaltext-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "5958ab89639a336d406220eed332015a", "sha256": "a5e35b9fe793d41c0c9161e7b6f98519e383fad405986f5afe8127cef1f9e92c" }, "downloads": -1, "filename": "django_legaltext-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5958ab89639a336d406220eed332015a", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 17727, "upload_time": "2017-08-04T10:33:58", "url": "https://files.pythonhosted.org/packages/c1/9a/b2db0d7674344c7e37fae383f83cc7984cd40ec6c0b216c04c1d0efee8b2/django_legaltext-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d93a3c9a61caae9bfc6133b17f792604", "sha256": "173bcba56a66f0d2c4721c84378f0c9f5338f515bb7789765d008678c44ffd64" }, "downloads": -1, "filename": "django-legaltext-0.2.0.tar.gz", "has_sig": false, "md5_digest": "d93a3c9a61caae9bfc6133b17f792604", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13539, "upload_time": "2017-08-04T10:33:56", "url": "https://files.pythonhosted.org/packages/80/75/7e20a03536e763dbe2d5e37d8ea6043fbfb2cf12b92d471f626643dc1851/django-legaltext-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "c97f2a30b6e40dc78f6cc60dd8a18545", "sha256": "47b67e22ef442d8045bf1fd390e6b1282a222b0b02f3548285ce700cbfab448e" }, "downloads": -1, "filename": "django_legaltext-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c97f2a30b6e40dc78f6cc60dd8a18545", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 17858, "upload_time": "2017-08-08T12:53:59", "url": "https://files.pythonhosted.org/packages/12/d2/c3b2ed9fd7382c6726c6d7130464afdd156b9db267e1f7be5961c8476638/django_legaltext-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "943e21a0ddfcb5cc89e07f6271e239c5", "sha256": "a5df7bddccd768f05705afd93fb0afbbfec6c0ecc9b1dbcb571ff756b37ac5c4" }, "downloads": -1, "filename": "django-legaltext-0.2.1.tar.gz", "has_sig": false, "md5_digest": "943e21a0ddfcb5cc89e07f6271e239c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13699, "upload_time": "2017-08-08T12:53:57", "url": "https://files.pythonhosted.org/packages/70/39/8d4ae11f1f7410bd33a9621b8ae3bb9f1fc00456002919c05772dff87ec7/django-legaltext-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "29e7c56d46f18f0fe3acf3e18adc2893", "sha256": "40c327a8442b8e3e34596776ed2bdcd106e636bad247d8bd58bf1a580bd323bd" }, "downloads": -1, "filename": "django_legaltext-0.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "29e7c56d46f18f0fe3acf3e18adc2893", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 17947, "upload_time": "2017-08-18T06:33:44", "url": "https://files.pythonhosted.org/packages/29/ed/9c6682d95ac52d301d534c3aab82af9ef50fd729400b1812aacf3694fa2d/django_legaltext-0.2.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "97d845f8a80ada4e2b6616d33b9f2613", "sha256": "d23b663aa8dee522ad0fe227a910ef18c9f18eac1111e8c45a5ca9e108b019ce" }, "downloads": -1, "filename": "django-legaltext-0.2.2.tar.gz", "has_sig": false, "md5_digest": "97d845f8a80ada4e2b6616d33b9f2613", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13846, "upload_time": "2017-08-18T06:33:41", "url": "https://files.pythonhosted.org/packages/f4/43/389702b8aba71d38f5002fbf4b15a3f6991c712d6dfb290fb9adf61a10d3/django-legaltext-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "8957c0b71cc9bedf8ff2f70d7f2dc37e", "sha256": "50b90e5743826431d9b4d50c238f3c1f6c050d9fcc557fae91d2a355536ff7c8" }, "downloads": -1, "filename": "django_legaltext-0.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8957c0b71cc9bedf8ff2f70d7f2dc37e", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 17954, "upload_time": "2017-09-13T12:35:23", "url": "https://files.pythonhosted.org/packages/1a/5b/73dbfd26f129f6ed41a1bce4fe916ce6e8af0098b5e8fc4cb5a0e9cfb9d6/django_legaltext-0.2.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d60c47272c28bda7d869e492e754b85e", "sha256": "cbc138ecaa83ba220e1a49f4b3a67c1eef49f0f44decac1bbd8d6ff7795bd9b9" }, "downloads": -1, "filename": "django-legaltext-0.2.3.tar.gz", "has_sig": false, "md5_digest": "d60c47272c28bda7d869e492e754b85e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13878, "upload_time": "2017-09-13T12:35:19", "url": "https://files.pythonhosted.org/packages/95/3b/2c6ddc7808330d806d3ca76eaf7ca5217285e9d86075435aec31cc2ce10c/django-legaltext-0.2.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "484db50348426bd223fdb3529272cf22", "sha256": "520384097ec62d74c152de283b006cbba80feb9c95cabbfddb12f295cf32f9bd" }, "downloads": -1, "filename": "django_legaltext-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "484db50348426bd223fdb3529272cf22", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 21468, "upload_time": "2017-09-28T14:38:06", "url": "https://files.pythonhosted.org/packages/9e/70/f934fb9525d8fc7d32e8e5b02948621d3ee6baf17ff6eba75833e056b0ad/django_legaltext-0.3.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "484db50348426bd223fdb3529272cf22", "sha256": "520384097ec62d74c152de283b006cbba80feb9c95cabbfddb12f295cf32f9bd" }, "downloads": -1, "filename": "django_legaltext-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "484db50348426bd223fdb3529272cf22", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 21468, "upload_time": "2017-09-28T14:38:06", "url": "https://files.pythonhosted.org/packages/9e/70/f934fb9525d8fc7d32e8e5b02948621d3ee6baf17ff6eba75833e056b0ad/django_legaltext-0.3.0-py2.py3-none-any.whl" } ] }