Commits

wlansu  committed 96a507b

recreated project folder

  • Participants
  • Parent commits f3f834d

Comments (0)

Files changed (21)

+The cookie law Django application is written and maintained by
+
+    Wouter Lansu <wfrlansu@gmail.com>
+
+  Contributors:
+
+    Jeffrey Gelens <jeffrey@noppo.pro>
+    Jos Vennik <josvennik@gmail.com>
+    Jeroen Huls <jeroenhuls@gmail.com>
+    Jan Harkema <jan.harkema@gmail.com>
+---------------------Version History:--------------------------------------
+
+0.1    12-11-2012 - Improved README, added setup.py, added comments
+0.1.1  15-11-2012 - Changed reload delay to 1.5 seconds. Sometimes took too long for cookie to be set.
+0.1.2  15-11-2012 - You can now set the text displayed in the cookie bar and the link to your cookie page.
+0.1.3  21-11-2012 - Optimized jQuery call to create cookie.
+0.1.4  21-11-2012 - Fixed templatetag not passing request to template and fixed retrieving headers from the request.
+0.1.5  22-11-2012 - Button title can now be changed, default styling included.
+0.1.6  30-11-2012 - Added a default cookie bar, removed import error, it caused issues during live deployments.
+0.2.0  05-12-2012 - Multilingual support added, optional title and close-button field added, link and link_name made optional.
+0.2.1  13-12-2012 - Javascript changed, csrf_token was sometimes nog being passed
+In the original BSD license, both occurrences of the phrase "COPYRIGHT HOLDERS
+AND CONTRIBUTORS" in the disclaimer read "REGENTS AND CONTRIBUTORS".
+
+Here is the license template:
+
+Copyright (c) 2012, Wouter Lansu All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this
+list of conditions and the following disclaimer.  Redistributions in binary
+form must reproduce the above copyright notice, this list of conditions and the
+following disclaimer in the documentation and/or other materials provided with
+the distribution.  Neither the name of the Getlogic B.V. nor the names of its
+contributors may be used to endorse or promote products derived from this
+software without specific prior written permission.  THIS SOFTWARE IS PROVIDED
+BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

File MANIFEST.in

-recursive-include cookie_law/templates *

File README

-This is a Django application that makes it easy to implement cookies compliant with Dutch law, as far as I am able
-to tell. I'm not a lawyer, so use at your own risk.
-
-
----------------------Version History:--------------------------------------
-
-*0.1    12-11-2012 - Improved README, added setup.py, added comments
-*0.1.1  15-11-2012 - Changed reload delay to 1.5 seconds. Sometimes took too long for cookie to be set.
-*0.1.2  15-11-2012 - You can now set the text displayed in the cookie bar and the link to your cookie page.
-*0.1.3  21-11-2012 - Optimized jQuery call to create cookie.
-
----------------------Requirements:-----------------------------------------
-
-- jQuery
-
----------------------Usage:------------------------------------------------
-
-- Add the cookie_law app to your INSTALLED_APPS.
-- Add 'url(r'^cookies/', include('apps.cookie_law.urls')),' to your main urls.py, without the ''.
-- Run the cookie_law migrations.
-- Include {% show_cookie_bar %} under the <body> tag in your base template.
-- Make a cookie bar in the admin.
-- Surround your cookies with {% if request.COOKIES.allow_cookies == '1' %} <cookie> {% endif %}

File setup.py

-import os
-
-from setuptools import setup
-
-install_requires = []
-
-README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README')
-
-description = 'Django specific cookie implementation compliant with Dutch law, use at your own risk.'
-
-if os.path.exists(README_PATH):
-    long_description = open(README_PATH).read()
-else:
-    long_description = description
-
-packages, data_files = [], []
-root_dir = os.path.dirname(__file__)
-if root_dir:
-    os.chdir(root_dir)
-
-for dirpath, dirnames, filenames in os.walk('cookie_law'):
-    # Ignore dirnames that start with '.'
-    for i, dirname in enumerate(dirnames):
-        if dirname.startswith('.'): del dirnames[i]
-    if '__init__.py' in filenames:
-        pkg = dirpath.replace(os.path.sep, '.')
-        if os.path.altsep:
-            pkg = pkg.replace(os.path.altsep, '.')
-        packages.append(pkg)
-    elif filenames:
-        prefix = dirpath[11:] # Strip "cookie_law/"
-        for f in filenames:
-            data_files.append(os.path.join(prefix, f))
-
-
-
-setup(
-    name='django-cookie-law-nl',
-    version='0.1.2',
-    install_requires=install_requires,
-    include_package_data=True,
-    description=description,
-    long_description=long_description,
-    author='Wouter Lansu',
-    author_email='wfrlansu@gmail.com',
-    url='https://bitbucket.org/wlansu/django_cookie_law_nl',
-    packages=packages,
-)