[Python-modules-commits] [django-simple-captcha] 01/05: Import django-simple-captcha_0.5.1.orig.tar.gz
Brian May
bam at moszumanska.debian.org
Sun Dec 6 01:51:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
bam pushed a commit to branch master
in repository django-simple-captcha.
commit a30a7ecc1f2d8660f3e8f99505e457f8e8bcf88d
Author: Brian May <bam at debian.org>
Date: Sun Dec 6 12:08:26 2015 +1100
Import django-simple-captcha_0.5.1.orig.tar.gz
---
CHANGES | 5 +
MANIFEST.in | 9 +-
PKG-INFO | 2 +-
captcha/__init__.py | 2 +-
django_simple_captcha.egg-info/PKG-INFO | 2 +-
django_simple_captcha.egg-info/SOURCES.txt | 92 -
django_simple_captcha.egg-info/requires.txt | 1 +
django_simple_captcha.egg-info/top_level.txt | 1 -
docs/.DS_Store | Bin 6148 -> 0 bytes
docs/_build/doctrees/advanced.doctree | Bin 31619 -> 0 bytes
docs/_build/doctrees/environment.pickle | Bin 15936 -> 0 bytes
docs/_build/doctrees/index.doctree | Bin 9242 -> 0 bytes
docs/_build/doctrees/usage.doctree | Bin 20599 -> 0 bytes
docs/_build/html/.buildinfo | 4 -
docs/_build/html/.doctrees/advanced.doctree | Bin 45903 -> 0 bytes
docs/_build/html/.doctrees/environment.pickle | Bin 17394 -> 0 bytes
docs/_build/html/.doctrees/index.doctree | Bin 8370 -> 0 bytes
docs/_build/html/.doctrees/usage.doctree | Bin 21586 -> 0 bytes
docs/_build/html/_images/captcha3.png | Bin 9633 -> 0 bytes
docs/_build/html/_images/dict.png | Bin 7859 -> 0 bytes
docs/_build/html/_images/math.png | Bin 7491 -> 0 bytes
docs/_build/html/_images/random_chars.png | Bin 8136 -> 0 bytes
docs/_build/html/_sources/advanced.txt | 244 -
docs/_build/html/_sources/index.txt | 40 -
docs/_build/html/_sources/usage.txt | 148 -
docs/_build/html/_static/ajax-loader.gif | Bin 673 -> 0 bytes
docs/_build/html/_static/basic.css | 599 --
docs/_build/html/_static/captcha3.png | Bin 9633 -> 0 bytes
docs/_build/html/_static/classic.css | 261 -
docs/_build/html/_static/comment-bright.png | Bin 3500 -> 0 bytes
docs/_build/html/_static/comment-close.png | Bin 3578 -> 0 bytes
docs/_build/html/_static/comment.png | Bin 3445 -> 0 bytes
docs/_build/html/_static/default.css | 256 -
docs/_build/html/_static/dict.png | Bin 7859 -> 0 bytes
docs/_build/html/_static/doctools.js | 263 -
docs/_build/html/_static/down-pressed.png | Bin 347 -> 0 bytes
docs/_build/html/_static/down.png | Bin 347 -> 0 bytes
docs/_build/html/_static/file.png | Bin 358 -> 0 bytes
docs/_build/html/_static/jquery-1.11.1.js | 10308 -------------------
docs/_build/html/_static/jquery.js | 4 -
docs/_build/html/_static/math.png | Bin 7491 -> 0 bytes
docs/_build/html/_static/minus.png | Bin 173 -> 0 bytes
docs/_build/html/_static/plus.png | Bin 173 -> 0 bytes
docs/_build/html/_static/pygments.css | 63 -
docs/_build/html/_static/random_chars.png | Bin 8136 -> 0 bytes
docs/_build/html/_static/searchtools.js | 622 --
docs/_build/html/_static/sidebar.js | 159 -
docs/_build/html/_static/underscore-1.3.1.js | 999 --
docs/_build/html/_static/underscore.js | 31 -
docs/_build/html/_static/up-pressed.png | Bin 345 -> 0 bytes
docs/_build/html/_static/up.png | Bin 345 -> 0 bytes
docs/_build/html/_static/websupport.js | 808 --
docs/_build/html/advanced.html | 317 -
docs/_build/html/genindex.html | 92 -
docs/_build/html/index.html | 156 -
docs/_build/html/objects.inv | Bin 277 -> 0 bytes
docs/_build/html/search.html | 99 -
docs/_build/html/searchindex.js | 1 -
docs/_build/html/usage.html | 269 -
docs/conf.py | 4 +-
setup.py | 40 +-
testproject/.DS_Store | Bin 6148 -> 0 bytes
testproject/.coverage | Bin 5116 -> 0 bytes
testproject/__init__.pyc | Bin 150 -> 0 bytes
testproject/__pycache__/__init__.cpython-32.pyc | Bin 154 -> 0 bytes
testproject/__pycache__/__init__.cpython-33.pyc | Bin 158 -> 0 bytes
testproject/__pycache__/__init__.cpython-34.pyc | Bin 146 -> 0 bytes
testproject/__pycache__/forms.cpython-33.pyc | Bin 634 -> 0 bytes
testproject/__pycache__/forms.cpython-34.pyc | Bin 436 -> 0 bytes
testproject/__pycache__/settings.cpython-32.pyc | Bin 1562 -> 0 bytes
testproject/__pycache__/settings.cpython-33.pyc | Bin 1650 -> 0 bytes
testproject/__pycache__/settings.cpython-34.pyc | Bin 1360 -> 0 bytes
testproject/__pycache__/settings_17.cpython-34.pyc | Bin 1363 -> 0 bytes
testproject/__pycache__/urls.cpython-33.pyc | Bin 524 -> 0 bytes
testproject/__pycache__/urls.cpython-34.pyc | Bin 436 -> 0 bytes
testproject/__pycache__/views.cpython-33.pyc | Bin 1081 -> 0 bytes
testproject/__pycache__/views.cpython-34.pyc | Bin 673 -> 0 bytes
testproject/coverage.xml | 385 -
testproject/django-simple-captcha.db | Bin 100352 -> 0 bytes
testproject/forms.pyc | Bin 510 -> 0 bytes
...ode_django-simple-captcha_captcha___init__.html | 96 -
...jango-simple-captcha_captcha_conf___init__.html | 84 -
...jango-simple-captcha_captcha_conf_settings.html | 188 -
..._Code_django-simple-captcha_captcha_fields.html | 346 -
...Code_django-simple-captcha_captcha_helpers.html | 250 -
..._Code_django-simple-captcha_captcha_models.html | 222 -
...co_Code_django-simple-captcha_captcha_urls.html | 104 -
...o_Code_django-simple-captcha_captcha_views.html | 326 -
testproject/htmlcov/coverage_html.js | 376 -
testproject/htmlcov/index.html | 186 -
testproject/htmlcov/jquery-1.4.3.min.js | 166 -
testproject/htmlcov/jquery.hotkeys.js | 99 -
testproject/htmlcov/jquery.isonscreen.js | 53 -
testproject/htmlcov/jquery.tablesorter.min.js | 2 -
testproject/htmlcov/keybd_closed.png | Bin 264 -> 0 bytes
testproject/htmlcov/keybd_open.png | Bin 267 -> 0 bytes
testproject/htmlcov/status.dat | 309 -
testproject/htmlcov/style.css | 300 -
testproject/settings.pyc | Bin 1458 -> 0 bytes
testproject/settings_17.pyc | Bin 1572 -> 0 bytes
testproject/urls.pyc | Bin 481 -> 0 bytes
testproject/views.pyc | Bin 803 -> 0 bytes
102 files changed, 52 insertions(+), 19341 deletions(-)
diff --git a/CHANGES b/CHANGES
index ff66fe6..b6335ca 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,8 @@
+Version 0.5.1
+-------------
+* Fine tuning MANIFEST.in
+* Prevent testproject from installing into site-packages
+
Version 0.5.0
-------------
* Adds missing includes in MANIFEST.in
diff --git a/MANIFEST.in b/MANIFEST.in
index f448896..bcd54b4 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -9,4 +9,11 @@ recursive-include captcha/locale *
recursive-include captcha/templates *
recursive-include testproject *
recursive-include docs *
-
+exclude testproject/django-simple-captcha.db
+prune .tox
+prune docs/_build
+prune htmlcov
+global-exclude *pyc
+global-exclude coverage.xml
+global-exclude .DS_Store
+global-exclude .coverage
diff --git a/PKG-INFO b/PKG-INFO
index 50680d4..50dc3e5 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: django-simple-captcha
-Version: 0.5.0
+Version: 0.5.1
Summary: A very simple, yet powerful, Django captcha application
Home-page: https://github.com/mbi/django-simple-captcha
Author: Marco Bonetti
diff --git a/captcha/__init__.py b/captcha/__init__.py
index 8e0ed66..7c4a195 100644
--- a/captcha/__init__.py
+++ b/captcha/__init__.py
@@ -1,6 +1,6 @@
import re
-VERSION = (0, 5, 0)
+VERSION = (0, 5, 1)
def get_version(svn=False):
diff --git a/django_simple_captcha.egg-info/PKG-INFO b/django_simple_captcha.egg-info/PKG-INFO
index 50680d4..50dc3e5 100644
--- a/django_simple_captcha.egg-info/PKG-INFO
+++ b/django_simple_captcha.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: django-simple-captcha
-Version: 0.5.0
+Version: 0.5.1
Summary: A very simple, yet powerful, Django captcha application
Home-page: https://github.com/mbi/django-simple-captcha
Author: Marco Bonetti
diff --git a/django_simple_captcha.egg-info/SOURCES.txt b/django_simple_captcha.egg-info/SOURCES.txt
index 1e02400..f2522f6 100644
--- a/django_simple_captcha.egg-info/SOURCES.txt
+++ b/django_simple_captcha.egg-info/SOURCES.txt
@@ -69,114 +69,22 @@ django_simple_captcha.egg-info/dependency_links.txt
django_simple_captcha.egg-info/not-zip-safe
django_simple_captcha.egg-info/requires.txt
django_simple_captcha.egg-info/top_level.txt
-docs/.DS_Store
docs/Makefile
docs/advanced.rst
docs/conf.py
docs/index.rst
docs/usage.rst
-docs/_build/doctrees/advanced.doctree
-docs/_build/doctrees/environment.pickle
-docs/_build/doctrees/index.doctree
-docs/_build/doctrees/usage.doctree
-docs/_build/html/.buildinfo
-docs/_build/html/advanced.html
-docs/_build/html/genindex.html
-docs/_build/html/index.html
-docs/_build/html/objects.inv
-docs/_build/html/search.html
-docs/_build/html/searchindex.js
-docs/_build/html/usage.html
-docs/_build/html/.doctrees/advanced.doctree
-docs/_build/html/.doctrees/environment.pickle
-docs/_build/html/.doctrees/index.doctree
-docs/_build/html/.doctrees/usage.doctree
-docs/_build/html/_images/captcha3.png
-docs/_build/html/_images/dict.png
-docs/_build/html/_images/math.png
-docs/_build/html/_images/random_chars.png
-docs/_build/html/_sources/advanced.txt
-docs/_build/html/_sources/index.txt
-docs/_build/html/_sources/usage.txt
-docs/_build/html/_static/ajax-loader.gif
-docs/_build/html/_static/basic.css
-docs/_build/html/_static/captcha3.png
-docs/_build/html/_static/classic.css
-docs/_build/html/_static/comment-bright.png
-docs/_build/html/_static/comment-close.png
-docs/_build/html/_static/comment.png
-docs/_build/html/_static/default.css
-docs/_build/html/_static/dict.png
-docs/_build/html/_static/doctools.js
-docs/_build/html/_static/down-pressed.png
-docs/_build/html/_static/down.png
-docs/_build/html/_static/file.png
-docs/_build/html/_static/jquery-1.11.1.js
-docs/_build/html/_static/jquery.js
-docs/_build/html/_static/math.png
-docs/_build/html/_static/minus.png
-docs/_build/html/_static/plus.png
-docs/_build/html/_static/pygments.css
-docs/_build/html/_static/random_chars.png
-docs/_build/html/_static/searchtools.js
-docs/_build/html/_static/sidebar.js
-docs/_build/html/_static/underscore-1.3.1.js
-docs/_build/html/_static/underscore.js
-docs/_build/html/_static/up-pressed.png
-docs/_build/html/_static/up.png
-docs/_build/html/_static/websupport.js
docs/_static/captcha3.png
docs/_static/dict.png
docs/_static/math.png
docs/_static/random_chars.png
-testproject/.DS_Store
-testproject/.coverage
testproject/.coveragerc
testproject/__init__.py
-testproject/__init__.pyc
testproject/coverage.sh
-testproject/coverage.xml
-testproject/django-simple-captcha.db
testproject/forms.py
-testproject/forms.pyc
testproject/manage.py
testproject/settings.py
-testproject/settings.pyc
-testproject/settings_17.pyc
testproject/urls.py
-testproject/urls.pyc
testproject/views.py
-testproject/views.pyc
-testproject/__pycache__/__init__.cpython-32.pyc
-testproject/__pycache__/__init__.cpython-33.pyc
-testproject/__pycache__/__init__.cpython-34.pyc
-testproject/__pycache__/forms.cpython-33.pyc
-testproject/__pycache__/forms.cpython-34.pyc
-testproject/__pycache__/settings.cpython-32.pyc
-testproject/__pycache__/settings.cpython-33.pyc
-testproject/__pycache__/settings.cpython-34.pyc
-testproject/__pycache__/settings_17.cpython-34.pyc
-testproject/__pycache__/urls.cpython-33.pyc
-testproject/__pycache__/urls.cpython-34.pyc
-testproject/__pycache__/views.cpython-33.pyc
-testproject/__pycache__/views.cpython-34.pyc
-testproject/htmlcov/_Users_marco_Code_django-simple-captcha_captcha___init__.html
-testproject/htmlcov/_Users_marco_Code_django-simple-captcha_captcha_conf___init__.html
-testproject/htmlcov/_Users_marco_Code_django-simple-captcha_captcha_conf_settings.html
-testproject/htmlcov/_Users_marco_Code_django-simple-captcha_captcha_fields.html
-testproject/htmlcov/_Users_marco_Code_django-simple-captcha_captcha_helpers.html
-testproject/htmlcov/_Users_marco_Code_django-simple-captcha_captcha_models.html
-testproject/htmlcov/_Users_marco_Code_django-simple-captcha_captcha_urls.html
-testproject/htmlcov/_Users_marco_Code_django-simple-captcha_captcha_views.html
-testproject/htmlcov/coverage_html.js
-testproject/htmlcov/index.html
-testproject/htmlcov/jquery-1.4.3.min.js
-testproject/htmlcov/jquery.hotkeys.js
-testproject/htmlcov/jquery.isonscreen.js
-testproject/htmlcov/jquery.tablesorter.min.js
-testproject/htmlcov/keybd_closed.png
-testproject/htmlcov/keybd_open.png
-testproject/htmlcov/status.dat
-testproject/htmlcov/style.css
testproject/templates/home.html
testproject/templates/captcha_test/image.html
\ No newline at end of file
diff --git a/django_simple_captcha.egg-info/requires.txt b/django_simple_captcha.egg-info/requires.txt
index b86c64b..8839fe1 100644
--- a/django_simple_captcha.egg-info/requires.txt
+++ b/django_simple_captcha.egg-info/requires.txt
@@ -1,3 +1,4 @@
setuptools
six >=1.2.0
Django >= 1.7
+Pillow >=2.2.2
diff --git a/django_simple_captcha.egg-info/top_level.txt b/django_simple_captcha.egg-info/top_level.txt
index d941b23..9c7c3bf 100644
--- a/django_simple_captcha.egg-info/top_level.txt
+++ b/django_simple_captcha.egg-info/top_level.txt
@@ -1,2 +1 @@
captcha
-testproject
diff --git a/docs/.DS_Store b/docs/.DS_Store
deleted file mode 100644
index 82bdb07..0000000
Binary files a/docs/.DS_Store and /dev/null differ
diff --git a/docs/_build/doctrees/advanced.doctree b/docs/_build/doctrees/advanced.doctree
deleted file mode 100644
index 00345b7..0000000
Binary files a/docs/_build/doctrees/advanced.doctree and /dev/null differ
diff --git a/docs/_build/doctrees/environment.pickle b/docs/_build/doctrees/environment.pickle
deleted file mode 100644
index 74f7584..0000000
Binary files a/docs/_build/doctrees/environment.pickle and /dev/null differ
diff --git a/docs/_build/doctrees/index.doctree b/docs/_build/doctrees/index.doctree
deleted file mode 100644
index a7c3343..0000000
Binary files a/docs/_build/doctrees/index.doctree and /dev/null differ
diff --git a/docs/_build/doctrees/usage.doctree b/docs/_build/doctrees/usage.doctree
deleted file mode 100644
index 043d4ea..0000000
Binary files a/docs/_build/doctrees/usage.doctree and /dev/null differ
diff --git a/docs/_build/html/.buildinfo b/docs/_build/html/.buildinfo
deleted file mode 100644
index 7cf4aac..0000000
--- a/docs/_build/html/.buildinfo
+++ /dev/null
@@ -1,4 +0,0 @@
-# Sphinx build info version 1
-# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: 599915ae7df202fad1805e4364b4d4b0
-tags: 645f666f9bcd5a90fca523b33c5a78b7
diff --git a/docs/_build/html/.doctrees/advanced.doctree b/docs/_build/html/.doctrees/advanced.doctree
deleted file mode 100644
index 85ddc1e..0000000
Binary files a/docs/_build/html/.doctrees/advanced.doctree and /dev/null differ
diff --git a/docs/_build/html/.doctrees/environment.pickle b/docs/_build/html/.doctrees/environment.pickle
deleted file mode 100644
index 8acecb2..0000000
Binary files a/docs/_build/html/.doctrees/environment.pickle and /dev/null differ
diff --git a/docs/_build/html/.doctrees/index.doctree b/docs/_build/html/.doctrees/index.doctree
deleted file mode 100644
index 919321d..0000000
Binary files a/docs/_build/html/.doctrees/index.doctree and /dev/null differ
diff --git a/docs/_build/html/.doctrees/usage.doctree b/docs/_build/html/.doctrees/usage.doctree
deleted file mode 100644
index 3d29df7..0000000
Binary files a/docs/_build/html/.doctrees/usage.doctree and /dev/null differ
diff --git a/docs/_build/html/_images/captcha3.png b/docs/_build/html/_images/captcha3.png
deleted file mode 100644
index 7d2b9f9..0000000
Binary files a/docs/_build/html/_images/captcha3.png and /dev/null differ
diff --git a/docs/_build/html/_images/dict.png b/docs/_build/html/_images/dict.png
deleted file mode 100644
index 9458460..0000000
Binary files a/docs/_build/html/_images/dict.png and /dev/null differ
diff --git a/docs/_build/html/_images/math.png b/docs/_build/html/_images/math.png
deleted file mode 100644
index ed123d9..0000000
Binary files a/docs/_build/html/_images/math.png and /dev/null differ
diff --git a/docs/_build/html/_images/random_chars.png b/docs/_build/html/_images/random_chars.png
deleted file mode 100644
index b431427..0000000
Binary files a/docs/_build/html/_images/random_chars.png and /dev/null differ
diff --git a/docs/_build/html/_sources/advanced.txt b/docs/_build/html/_sources/advanced.txt
deleted file mode 100644
index 54b69d0..0000000
--- a/docs/_build/html/_sources/advanced.txt
+++ /dev/null
@@ -1,244 +0,0 @@
-Advanced topics
-===============
-
-Configuration toggles
-+++++++++++++++++++++
-
-The following configuration elements can be defined (in your ``settings.py``)
-
-CAPTCHA_FONT_PATH
------------------
-
-Full path and filename of a TrueType (TTF), OpenType, or pilfont font file used to render text.
-
-Defaults to: ``fonts/Vera.ttf`` (included in the application, GPL font).
-
-Note that your PIL installation must support TTF and/or OpenFont if you want to use these kind of glyphs (most modern distributions of PIL do.)
-
-Note: as of version 0.4.6, ``CAPTCHA_FONT_PATH`` may be an iterable of font paths, in which case a font will be picked randomly from the list for each CAPTCHA.
-
-CAPTCHA_FONT_SIZE
------------------
-
-Font-size in pixels of the rendered text.
-
-Defaults to '22'.
-
-CAPTCHA_IMAGE_SIZE
-------------------
-
-Image size in pixels of generated captcha, specified by 2-tuple (width, height)
-
-Defaults to `None` (automatically calculated)
-
-CAPTCHA_LETTER_ROTATION
------------------------
-
-A random rotation in this interval is applied to each letter in the challenge text.
-
-Defaults to ``(-35,35)``.
-
-New in version 0.1.6: set this to None to disable letter roation.
-
-CAPTCHA_BACKGROUND_COLOR
-------------------------
-
-Background-color of the captcha. Can be expressed as html-style #rrggbb, rgb(red, green, blue), or common html names (e.g. "red").
-
-Defaults to: ``'#ffffff'``
-
-CAPTCHA_FOREGROUND_COLOR
-------------------------
-
-Foreground-color of the captcha.
-
-Defaults to ``'#001100'``
-
-CAPTCHA_CHALLENGE_FUNCT
-------------------------
-
-String representing a python callable (i.e. a function) to use as challenge generator.
-
-See Generators below for a list of available generators and a guide on how to write your own.
-
-Defaults to: ``'captcha.helpers.random_char_challenge'``
-
-CAPTCHA_NOISE_FUNCTIONS
-------------------------
-
-List of strings of python callables that take a PIL ``DrawImage`` object and an ``Image`` image as input, modify the ``DrawImage``, then return it.
-
-Defaults to: ``('captcha.helpers.noise_arcs','captcha.helpers.noise_dots',)``
-
-A null noise helper function useful when debugging issues is available at ``'captcha.helpers.noise_null'``.
-
-
-CAPTCHA_FILTER_FUNCTIONS
-------------------------
-
-List of strings of python callables that take a PIL ``Image`` object as input, modify it and return it.
-
-These are called right before the rendering, i.e. after the noise functions.
-
-Defaults to: ``('captcha.helpers.post_smooth',)``
-
-
-CAPTCHA_WORDS_DICTIONARY
-------------------------
-
-Required for the ``word_challenge`` challenge function only. Points a file containing a list of words, one per line.
-
-Defaults to: ``'/usr/share/dict/words'``
-
-CAPTCHA_FLITE_PATH
-------------------------
-
-Full path to the ``flite`` executable. When defined, will automatically add audio output to the captcha.
-
-Defaults to: ``None`` (no audio output)
-
-CAPTCHA_TIMEOUT
----------------
-
-Integer. Lifespan, in minutes, of the generated captcha.
-
-Defaults to: 5
-
-CAPTCHA_LENGTH
-------------------------
-
-Sets the length, in chars, of the generated captcha. (for the ``'captcha.helpers.random_char_challenge'`` challenge)
-
-Defaults to: 4
-
-CAPTCHA_DICTIONARY_MIN_LENGTH
------------------------------
-
-When using the word_challenge challenge function, controls the minimum length of the words to be randomly picked from the dictionary file.
-
-Defaults to: 0
-
-CAPTCHA_DICTIONARY_MAX_LENGTH
------------------------------
-
-When using the word_challenge challenge function, controls the maximal length of the words to be randomly picked from the dictionary file.
-
-Defaults to: 99
-
-Note: it's perfectly safe to specify e.g. ``CAPTCHA_DICTIONARY_MIN_LENGTH = CAPTCHA_DICTIONARY_MAX_LENGTH = 6`` but it's considered an error to define ``CAPTCHA_DICTIONARY_MAX_LENGTH`` to be smaller than ``CAPTCHA_DICTIONARY_MIN_LENGTH``.
-
-.. _output_format_ref:
-
-CAPTCHA_OUTPUT_FORMAT
-------------------------
-
-New in version 0.1.6
-
-Specify your own output format for the generated markup, when e.g. you want to position the captcha image relative to the text field in your form.
-
-Defaults to: ``None``
-
-(Used to default to: ``u'%(image)s %(hidden_field)s %(text_field)s'``)
-
-Note: this settings is deprecated in favor of template-based field rendering, use ``CAPTCHA_FIELD_TEMPLATE`` instead (see the Rendering section below).
-
-
-CAPTCHA_TEST_MODE
-------------------------
-
-New in version 0.3.6
-
-When set to True, the string "PASSED" (any case) will be accepted as a valid response to any CAPTCHA.
-Use this for testing purposes. Warning: do NOT set this to True in production.
-
-Defaults to: False
-
-
-Rendering
-+++++++++
-
-A CAPTCHA field is made up of three components:
-
-* The actual image that the end user has to copy from
-* A text field, that the user has to fill with the content of the image
-* A hidden field, containing the database reference of the CAPTCHA (for verification).
-
-These three elements are rendered individually, then assembled into a single bit of HTML.
-
-As of version 0.4.7 you can control how the individual components are rendered, as well as how all components are assembled, by overriding four templates:
-
-* ``captcha/image.html`` controls the rendering of the image (and optionnally audio) element
-* ``captcha/text_field.html`` controls the rendering of the text field
-* ``captcha/hidden_field.html`` controls the rendering of the hidden input
-* ``captcha/field.html`` controls the assembling of the previous three elements
-
-These templates can be overriden in your own ``templates`` folder, or you can change the actual template names by settings ``CAPTCHA_IMAGE_TEMPLATE``, ``CAPTCHA_TEXT_FIELD_TEMPLATE``, ``CAPTCHA_HIDDEN_FIELD_TEMPLATE`` and ``CAPTCHA_FIELD_TEMPLATE``, respectively.
-
-Context
--------
-
-The following context variables are passed to the three "individual" templates:
-
-* ``image``: The URL of the rendered CAPTCHA image
-* ``name``: name of the field (i.e. the name of your form field)
-* ``key``: the hashed value (identifier) of this CAPTCHA: this is stored and passed in the hidden input
-* ``id``: the HTML ``id`` attribute to be used
-
-The ``captcha/field.html`` template receives the following context:
-
-* ``image``: the rendered (HTML) image and optionnaly audio elements
-* ``hidden_field``: the rendered hidden input
-* ``text_field``: the rendered text input
-
-Note: these elements have been marked as safe, you can render them straight into your template.
-
-
-Generators and modifiers
-++++++++++++++++++++++++
-
-Random chars
-------------
-
-.. image:: _static/random_chars.png
-
-Classic captcha that picks four random chars. This is case insensitive. ::
-
- CAPTCHA_CHALLENGE_FUNCT = 'captcha.helpers.random_char_challenge'
-
-
-Simple Math
-------------
-
-.. image:: _static/math.png
-
-Another classic, that challenges the user to resolve a simple math challenge by randomly picking two numbers between one and nine, and a random operator among plus, minus, times. ::
-
- CAPTCHA_CHALLENGE_FUNCT = 'captcha.helpers.math_challenge'
-
-
-Dictionary Word
-----------------
-
-.. image:: _static/dict.png
-
-Picks a random word from a dictionary file. Note, you must define ``CAPTCHA_WORDS_DICTIONARY`` in your cofiguration to use this generator. ::
-
- CAPTCHA_CHALLENGE_FUNCT = 'captcha.helpers.word_challenge'
-
-
-Roll your own
--------------
-
-To have your own challenge generator, simply point ``CAPTCHA_CHALLENGE_FUNCT`` to a function that returns a tuple of strings: the first one (the challenge) will be rendered in the captcha, the second is the valid response to the challenge, e.g. ``('5+10=', '15')``, ``('AAAA', 'aaaa')``
-
-This sample generator that returns six random digits::
-
- import random
-
- def random_digit_challenge():
- ret = u''
- for i in range(6):
- ret += str(random.randint(0,9))
- return ret, ret
-
-
diff --git a/docs/_build/html/_sources/index.txt b/docs/_build/html/_sources/index.txt
deleted file mode 100644
index 962f9bb..0000000
--- a/docs/_build/html/_sources/index.txt
+++ /dev/null
@@ -1,40 +0,0 @@
-*********************
-Django Simple Captcha
-*********************
-
-.. image:: https://travis-ci.org/mbi/django-simple-captcha.png?branch=master
-
-Django Simple Captcha is an extremely simple, yet highly customizable Django application to add captcha images to any Django form.
-
-.. image:: _static/captcha3.png
-
-Features
-++++++++
-
-* Very simple to setup and deploy, yet very configurable
-* Can use custom challenges (e.g. random chars, simple maths, dictionary word, ...)
-* Custom generators, noise and filter functions alter the look of the generated image
-* Supports text-to-speech audio output of the challenge text, for improved accessibility
-* Ajax refresh
-
-Requirements
-++++++++++++
-
-* Django 1.7+
-* A recent version of Pillow compiled with FreeType support
-* Flite is required for text-to-speech (audio) output, but not mandatory
-
-Python 3 compatibility
-++++++++++++++++++++++
-
-The current development version supports Python3 via the `six <https://pypi.python.org/pypi/six>`_ compatibility layer.
-
-******************
-Contents:
-******************
-
-.. toctree::
- :maxdepth: 2
-
- usage.rst
- advanced.rst
diff --git a/docs/_build/html/_sources/usage.txt b/docs/_build/html/_sources/usage.txt
deleted file mode 100644
index 91b9039..0000000
--- a/docs/_build/html/_sources/usage.txt
+++ /dev/null
@@ -1,148 +0,0 @@
-Using django-simple-captcha
-===========================
-
-Installation
-+++++++++++++
-
-1. Download ``django-simple-captcha`` using pip_ by running: ``pip install django-simple-captcha``
-2. Add ``captcha`` to the ``INSTALLED_APPS`` in your ``settings.py``
-3. Run ``python manage.py syncdb`` (or ``python manage.py migrate`` if you are managing database migrations via South) to create the required database tables
-4. Add an entry to your ``urls.py``::
-
- urlpatterns += patterns('',
- url(r'^captcha/', include('captcha.urls')),
- )
-
-
-Django-simple-captcha 0.4.3 and later supports both Django 1.7's new migrations and South migrations: if you are using South and Django < 1.7, you must define the following in your settings::
-
- SOUTH_MIGRATION_MODULES = {
- 'captcha': 'captcha.south_migrations',
- }
-
-
-.. _pip: http://pypi.python.org/pypi/pip
-
-
-Note: PIL and Pillow require that image libraries are installed on your system. On e.g. Debian or Ubuntu, you'd need these packages to compile and install Pillow::
-
- apt-get -y install libz-dev libjpeg-dev libfreetype6-dev python-dev
-
-Adding to a Form
-+++++++++++++++++
-
-Using a ``CaptchaField`` is quite straight-forward:
-
-Define the Form
-----------------
-
-
-To embed a CAPTCHA in your forms, simply add a ``CaptchaField`` to the form definition::
-
- from django import forms
- from captcha.fields import CaptchaField
-
- class CaptchaTestForm(forms.Form):
- myfield = AnyOtherField()
- captcha = CaptchaField()
-
-…or, as a ``ModelForm``::
-
-
- from django import forms
- from captcha.fields import CaptchaField
-
- class CaptchaTestModelForm(forms.ModelForm):
- captcha = CaptchaField()
- class Meta:
- model = MyModel
-
-Validate the Form
------------------
-
-In your view, validate the form as usually: if the user didn't provide a valid response to the CAPTCHA challenge, the form will raise a ``ValidationError``::
-
- def some_view(request):
- if request.POST:
- form = CaptchaTestForm(request.POST)
-
- # Validate the form: the captcha field will automatically
- # check the input
- if form.is_valid():
- human = True
- else:
- form = CaptchaTestForm()
-
- return render_to_response('template.html',locals())
-
-Passing arguments to the field
-------------------------------
-
-``CaptchaField`` takes a few optional arguements:
-
-* ``output_format`` will let you format the layout of the rendered field. Defaults to the value defined in : :ref:`output_format_ref`.
-* ``id_prefix`` Optional prefix that will be added to the ID attribute in the generated fields and labels, to be used when e.g. several Captcha fields are being displayed on a same page. (added in version 0.4.4)
-
-Example usage for ajax form
----------------------------
-
-An example CAPTCHA validation in AJAX::
-
- from django.views.generic.edit import CreateView
- from captcha.models import CaptchaStore
- from captcha.helpers import captcha_image_url
- from django.http import HttpResponse
- import json
-
- class AjaxExampleForm(CreateView):
- template_name = ''
- form_class = AjaxForm
-
- def form_invalid(self, form):
- if self.request.is_ajax():
- to_json_response = dict()
- to_json_response['status'] = 0
- to_json_response['form_errors'] = form.errors
-
- to_json_response['new_cptch_key'] = CaptchaStore.generate_key()
- to_json_response['new_cptch_image'] = captcha_image_url(to_json_response['new_cptch_key'])
-
- return HttpResponse(json.dumps(to_json_response), content_type='application/json')
-
- def form_valid(self, form):
- form.save()
- if self.request.is_ajax():
- to_json_response = dict()
- to_json_response['status'] = 1
-
- to_json_response['new_cptch_key'] = CaptchaStore.generate_key()
- to_json_response['new_cptch_image'] = captcha_image_url(to_json_response['new_cptch_key'])
-
- return HttpResponse(json.dumps(to_json_response), content_type='application/json')
-
-
-And in javascript your must update the image and hidden input in form
-
-
-Example usage ajax refresh button
----------------------------------
-
-# html::
-
- <form action='.' method='POST'>
- {{ form }}
- <input type="submit" />
- <button class='js-captcha-refresh'></button>
- </form>
-
-# javascript::
-
- $('.js-captcha-refresh').click(function(){
- $form = $(this).parents('form');
-
- $.getJSON($(this).data('url'), {}, function(json) {
- // This should update your captcha image src and captcha hidden input
- });
-
- return false;
- });
diff --git a/docs/_build/html/_static/ajax-loader.gif b/docs/_build/html/_static/ajax-loader.gif
deleted file mode 100644
index 61faf8c..0000000
Binary files a/docs/_build/html/_static/ajax-loader.gif and /dev/null differ
diff --git a/docs/_build/html/_static/basic.css b/docs/_build/html/_static/basic.css
deleted file mode 100644
index 9fa77d8..0000000
--- a/docs/_build/html/_static/basic.css
+++ /dev/null
@@ -1,599 +0,0 @@
-/*
- * basic.css
- * ~~~~~~~~~
- *
- * Sphinx stylesheet -- basic theme.
- *
- * :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
- * :license: BSD, see LICENSE for details.
- *
- */
-
-/* -- main layout ----------------------------------------------------------- */
-
-div.clearer {
- clear: both;
-}
-
-/* -- relbar ---------------------------------------------------------------- */
-
-div.related {
- width: 100%;
- font-size: 90%;
-}
-
-div.related h3 {
- display: none;
-}
-
-div.related ul {
- margin: 0;
- padding: 0 0 0 10px;
- list-style: none;
-}
-
-div.related li {
- display: inline;
-}
-
-div.related li.right {
- float: right;
- margin-right: 5px;
-}
-
-/* -- sidebar --------------------------------------------------------------- */
-
-div.sphinxsidebarwrapper {
- padding: 10px 5px 0 10px;
-}
-
-div.sphinxsidebar {
- float: left;
- width: 230px;
- margin-left: -100%;
- font-size: 90%;
-}
-
-div.sphinxsidebar ul {
- list-style: none;
-}
-
-div.sphinxsidebar ul ul,
-div.sphinxsidebar ul.want-points {
- margin-left: 20px;
- list-style: square;
-}
-
-div.sphinxsidebar ul ul {
- margin-top: 0;
- margin-bottom: 0;
-}
-
-div.sphinxsidebar form {
- margin-top: 10px;
-}
-
-div.sphinxsidebar input {
- border: 1px solid #98dbcc;
- font-family: sans-serif;
- font-size: 1em;
-}
-
-div.sphinxsidebar #searchbox input[type="text"] {
- width: 170px;
-}
-
-div.sphinxsidebar #searchbox input[type="submit"] {
- width: 30px;
-}
-
-img {
- border: 0;
- max-width: 100%;
-}
-
-/* -- search page ----------------------------------------------------------- */
-
-ul.search {
- margin: 10px 0 0 20px;
- padding: 0;
-}
-
-ul.search li {
- padding: 5px 0 5px 20px;
- background-image: url(file.png);
- background-repeat: no-repeat;
- background-position: 0 7px;
-}
-
-ul.search li a {
- font-weight: bold;
-}
-
-ul.search li div.context {
- color: #888;
- margin: 2px 0 0 30px;
- text-align: left;
-}
-
-ul.keywordmatches li.goodmatch a {
- font-weight: bold;
-}
-
-/* -- index page ------------------------------------------------------------ */
-
-table.contentstable {
- width: 90%;
-}
-
-table.contentstable p.biglink {
- line-height: 150%;
-}
-
-a.biglink {
- font-size: 1.3em;
-}
-
-span.linkdescr {
- font-style: italic;
- padding-top: 5px;
- font-size: 90%;
-}
-
-/* -- general index --------------------------------------------------------- */
-
-table.indextable {
- width: 100%;
-}
-
-table.indextable td {
- text-align: left;
- vertical-align: top;
-}
-
-table.indextable dl, table.indextable dd {
- margin-top: 0;
- margin-bottom: 0;
-}
-
-table.indextable tr.pcap {
- height: 10px;
-}
-
-table.indextable tr.cap {
- margin-top: 10px;
- background-color: #f2f2f2;
-}
... 19090 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-simple-captcha.git
More information about the Python-modules-commits
mailing list