{ "info": { "author": "Emencia", "author_email": "dthenon@emencia.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.4", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. _Django: https://www.djangoproject.com/\n.. _jquery.cookie: https://github.com/carhartl/jquery-cookie\n\n==================\nEmencia Cookie Law\n==================\n\nA Django app to easily integrate a banner about EU Cookie Law\n\nDisplay a HTML banner (or whatever you want if you override the template) to inform about *European Cookie Law* with a link for more informations and another link to accept and continue to browse site. Once clicked the accept link push a cookie to the browser so the banner won't never display again.\n\nLinks\n*****\n\n* Download his `PyPi package `_;\n* Clone it on his `repository `_;\n\nRequires\n********\n\n* `Django`_ >= 1.4;\n* jQuery >= 1.2;\n* `jquery.cookie`_ == 1.4.1;\n\nInstall\n*******\n\nFirst install the package ::\n\n pip install emencia-cookie-law\n\nAdd it to your installed Django apps in settings : ::\n\n INSTALLED_APPS = (\n ...\n 'cookie_law',\n ...\n )\n\nNow you will need to integrate it in your templates.\n\nOptional settings\n-----------------\n\nCOOKIELAW_COOKIE_NAME\n.....................\n\nDefault to ``emencia_cookie_law``.\n\nThe cookie name pushed to the browser if the user click on the accept link. Note that this name is hardcoded in the shipped Javascript plugin, so if you change it you will have to code another plugin or duplicate it in your statics to override it and change its text.\n\nCOOKIELAW_TEMPLATE\n..................\n\nDefault to ``cookie_law/banner.html``.\n\nThe filepath to the banner template. You should not really need to edit this settings to change the banner aspect, just override the template with the same relative filepath in your project templates directory.\n\n\nTemplates integration\n---------------------\n\nRecommended way is to have a basic file for all your project templates, often named ``base.html`` or ``skeleton.html``, so you'll just integrate *cookie_law* only once.\n\n#. In your template(s), load the Javascript file: ::\n\n \n \n Don't forget *jQuery* and *jquery.cookie* requirements to be loaded before this plugin (if you are using Foundation, they are allready loaded).\n\n#. Load the the cookie_law tag library at top of your template: ::\n\n {% load cookie_law %}\n\n#. Then call its tag where you want, commonly as the first element in your ```` content: ::\n\n {% cookie_law_banner %}\n\nDefault template has been made with Foundation components, if you don't use it or use another CSS Framework, you should override it see setting `COOKIELAW_TEMPLATE`_.\n\nBecause the default template has been done for Foundation, there is no need of any CSS to load.\n\nUsage\n*****\n\nNothing special. The banner display until you accept the game from the button within the banner. \n\nOnce accepted the browser is given a cookie so the user won't see again the banner. The cookie lifetime expires in 10 years since accept.", "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/emencia/emencia-cookie-law", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "emencia-cookie-law", "package_url": "https://pypi.org/project/emencia-cookie-law/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/emencia-cookie-law/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/emencia/emencia-cookie-law" }, "release_url": "https://pypi.org/project/emencia-cookie-law/0.2.3/", "requires_dist": null, "requires_python": null, "summary": "A Django app to easily integrate a banner about EU Cookie Law", "version": "0.2.3" }, "last_serial": 1787927, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "bacdd8389443b8d849631e3737601993", "sha256": "60dedf8c5f8b813d35565f5f2e2b9924f272da009c408d32375d5a0114a0c8a3" }, "downloads": -1, "filename": "emencia-cookie-law-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bacdd8389443b8d849631e3737601993", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4974, "upload_time": "2015-09-30T00:11:19", "url": "https://files.pythonhosted.org/packages/25/4e/313288f236d5ec14fa93e75d9d525a9b990d0b00011b1659d283d9f52162/emencia-cookie-law-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "69c6e9e46c59226a35c0291fc5682e78", "sha256": "357cc3d3f8f6381ad52dcd9304965ed81753c5e1bb721291410bb3bedc71ef24" }, "downloads": -1, "filename": "emencia-cookie-law-0.2.0.tar.gz", "has_sig": false, "md5_digest": "69c6e9e46c59226a35c0291fc5682e78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6056, "upload_time": "2015-09-30T00:17:30", "url": "https://files.pythonhosted.org/packages/d5/5b/f55ed5aa790b386d0ba601ff6200d8ad59e3e53c9fd985add382e1ad3a77/emencia-cookie-law-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "54577c71ada76c2b36035f68ca64dd4b", "sha256": "c39942f7e6a0c2ba878c8ee14e4e27848d458bc03094070473cb6e1fc74f793c" }, "downloads": -1, "filename": "emencia-cookie-law-0.2.1.tar.gz", "has_sig": false, "md5_digest": "54577c71ada76c2b36035f68ca64dd4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7030, "upload_time": "2015-09-30T01:30:10", "url": "https://files.pythonhosted.org/packages/be/8e/a9fc7af8fa43a1cc9f21ce9ade91317c830b06c6e0b1ecda132d642cc5d8/emencia-cookie-law-0.2.1.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "49d3f37749a171038a90f93815bf8fc8", "sha256": "c53da845ce873fb0074cffd11957a697c8461be1994185806f089304dcdfc9be" }, "downloads": -1, "filename": "emencia-cookie-law-0.2.3.tar.gz", "has_sig": false, "md5_digest": "49d3f37749a171038a90f93815bf8fc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7001, "upload_time": "2015-10-27T07:03:28", "url": "https://files.pythonhosted.org/packages/02/ff/a22148ed5fefb7004b6714e53e1dfb947d871636a078920fbe2749acbbba/emencia-cookie-law-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "49d3f37749a171038a90f93815bf8fc8", "sha256": "c53da845ce873fb0074cffd11957a697c8461be1994185806f089304dcdfc9be" }, "downloads": -1, "filename": "emencia-cookie-law-0.2.3.tar.gz", "has_sig": false, "md5_digest": "49d3f37749a171038a90f93815bf8fc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7001, "upload_time": "2015-10-27T07:03:28", "url": "https://files.pythonhosted.org/packages/02/ff/a22148ed5fefb7004b6714e53e1dfb947d871636a078920fbe2749acbbba/emencia-cookie-law-0.2.3.tar.gz" } ] }