Permalink
Browse files

Initial checking of unofficial mirror of django-registration

  • Loading branch information...
0 parents commit 7444dcd1a7f7e2586c236a98501cf0faf38be7ae Nathan Borror committed Jan 2, 2010
Showing with 10,418 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +29 −0 AUTHORS
  3. +232 −0 CHANGELOG
  4. +24 −0 INSTALL
  5. +28 −0 LICENSE
  6. +8 −0 MANIFEST.in
  7. +13 −0 README
  8. +88 −0 docs/Makefile
  9. BIN docs/_build/doctrees/backend-api.doctree
  10. BIN docs/_build/doctrees/default-backend.doctree
  11. BIN docs/_build/doctrees/environment.pickle
  12. BIN docs/_build/doctrees/faq.doctree
  13. BIN docs/_build/doctrees/forms.doctree
  14. BIN docs/_build/doctrees/index.doctree
  15. BIN docs/_build/doctrees/quickstart.doctree
  16. BIN docs/_build/doctrees/release-notes.doctree
  17. BIN docs/_build/doctrees/signals.doctree
  18. BIN docs/_build/doctrees/upgrade.doctree
  19. BIN docs/_build/doctrees/views.doctree
  20. +4 −0 docs/_build/html/.buildinfo
  21. +405 −0 docs/_build/html/_static/basic.css
  22. +210 −0 docs/_build/html/_static/default.css
  23. +232 −0 docs/_build/html/_static/doctools.js
  24. BIN docs/_build/html/_static/file.png
  25. +32 −0 docs/_build/html/_static/jquery.js
  26. BIN docs/_build/html/_static/minus.png
  27. BIN docs/_build/html/_static/plus.png
  28. +59 −0 docs/_build/html/_static/pygments.css
  29. +467 −0 docs/_build/html/_static/searchtools.js
  30. +312 −0 docs/_build/html/backend-api.html
  31. +384 −0 docs/_build/html/default-backend.html
  32. +287 −0 docs/_build/html/faq.html
  33. +194 −0 docs/_build/html/forms.html
  34. +154 −0 docs/_build/html/genindex.html
  35. +130 −0 docs/_build/html/index.html
  36. +116 −0 docs/_build/html/modindex.html
  37. +26 −0 docs/_build/html/objects.inv
  38. +365 −0 docs/_build/html/quickstart.html
  39. +167 −0 docs/_build/html/release-notes.html
  40. +97 −0 docs/_build/html/search.html
  41. +1 −0 docs/_build/html/searchindex.js
  42. +159 −0 docs/_build/html/signals.html
  43. +227 −0 docs/_build/html/upgrade.html
  44. +231 −0 docs/_build/html/views.html
  45. +230 −0 docs/backend-api.rst
  46. +194 −0 docs/conf.py
  47. +239 −0 docs/default-backend.rst
  48. +195 −0 docs/faq.rst
  49. +100 −0 docs/forms.rst
  50. +43 −0 docs/index.rst
  51. +112 −0 docs/make.bat
  52. +294 −0 docs/quickstart.rst
  53. +65 −0 docs/release-notes.rst
  54. +56 −0 docs/signals.rst
  55. +120 −0 docs/upgrade.rst
  56. +122 −0 docs/views.rst
  57. +12 −0 registration/__init__.py
  58. +46 −0 registration/admin.py
  59. +58 −0 registration/auth_urls.py
  60. +32 −0 registration/backends/__init__.py
  61. +139 −0 registration/backends/default/__init__.py
  62. +54 −0 registration/backends/default/urls.py
  63. +123 −0 registration/forms.py
  64. BIN registration/locale/ar/LC_MESSAGES/django.mo
  65. +81 −0 registration/locale/ar/LC_MESSAGES/django.po
  66. BIN registration/locale/bg/LC_MESSAGES/django.mo
  67. +78 −0 registration/locale/bg/LC_MESSAGES/django.po
  68. BIN registration/locale/da/LC_MESSAGES/django.mo
  69. +92 −0 registration/locale/da/LC_MESSAGES/django.po
  70. BIN registration/locale/de/LC_MESSAGES/django.mo
  71. +93 −0 registration/locale/de/LC_MESSAGES/django.po
  72. BIN registration/locale/el/LC_MESSAGES/django.mo
  73. +84 −0 registration/locale/el/LC_MESSAGES/django.po
  74. BIN registration/locale/en/LC_MESSAGES/django.mo
  75. +89 −0 registration/locale/en/LC_MESSAGES/django.po
  76. BIN registration/locale/es/LC_MESSAGES/django.mo
  77. +85 −0 registration/locale/es/LC_MESSAGES/django.po
  78. BIN registration/locale/es_AR/LC_MESSAGES/django.mo
  79. +83 −0 registration/locale/es_AR/LC_MESSAGES/django.po
  80. BIN registration/locale/fr/LC_MESSAGES/django.mo
  81. +81 −0 registration/locale/fr/LC_MESSAGES/django.po
  82. BIN registration/locale/he/LC_MESSAGES/django.mo
  83. +86 −0 registration/locale/he/LC_MESSAGES/django.po
  84. BIN registration/locale/is/LC_MESSAGES/django.mo
  85. +74 −0 registration/locale/is/LC_MESSAGES/django.po
  86. BIN registration/locale/it/LC_MESSAGES/django.mo
  87. +82 −0 registration/locale/it/LC_MESSAGES/django.po
  88. BIN registration/locale/ja/LC_MESSAGES/django.mo
  89. +78 −0 registration/locale/ja/LC_MESSAGES/django.po
  90. BIN registration/locale/ko/LC_MESSAGES/django.mo
  91. +89 −0 registration/locale/ko/LC_MESSAGES/django.po
  92. BIN registration/locale/nl/LC_MESSAGES/django.mo
  93. +77 −0 registration/locale/nl/LC_MESSAGES/django.po
  94. BIN registration/locale/pl/LC_MESSAGES/django.mo
  95. +84 −0 registration/locale/pl/LC_MESSAGES/django.po
  96. BIN registration/locale/pt_BR/LC_MESSAGES/django.mo
  97. +81 −0 registration/locale/pt_BR/LC_MESSAGES/django.po
  98. BIN registration/locale/ru/LC_MESSAGES/django.mo
  99. +92 −0 registration/locale/ru/LC_MESSAGES/django.po
  100. BIN registration/locale/sl/LC_MESSAGES/django.mo
  101. +87 −0 registration/locale/sl/LC_MESSAGES/django.po
  102. BIN registration/locale/sr/LC_MESSAGES/django.mo
  103. +80 −0 registration/locale/sr/LC_MESSAGES/django.po
  104. BIN registration/locale/sv/LC_MESSAGES/django.mo
  105. +81 −0 registration/locale/sv/LC_MESSAGES/django.po
  106. BIN registration/locale/zh_CN/LC_MESSAGES/django.mo
  107. +77 −0 registration/locale/zh_CN/LC_MESSAGES/django.po
  108. BIN registration/locale/zh_TW/LC_MESSAGES/django.mo
  109. +77 −0 registration/locale/zh_TW/LC_MESSAGES/django.po
  110. 0 registration/management/__init__.py
  111. 0 registration/management/commands/__init__.py
  112. +19 −0 registration/management/commands/cleanupregistration.py
  113. +257 −0 registration/models.py
  114. +8 −0 registration/signals.py
  115. +4 −0 registration/tests/__init__.py
  116. +361 −0 registration/tests/backends.py
  117. +119 −0 registration/tests/forms.py
  118. +225 −0 registration/tests/models.py
  119. +82 −0 registration/tests/urls.py
  120. +246 −0 registration/tests/views.py
  121. +15 −0 registration/urls.py
  122. +204 −0 registration/views.py
  123. +48 −0 setup.py
@@ -0,0 +1,4 @@
+*.pyc
+*.db
+*.txt
+.hg*
@@ -0,0 +1,29 @@
+The primary author of django-registration is James Bennett
+<james@b-list.org>, who may be found online at
+<http://www.b-list.org/>.
+
+
+Others who have contributed to the application:
+
+* Samuel Adam (French translation)
+* Jannis Leidel (German translation)
+* Rapahel Hertzog (helpful suggestions on packaging and distribution)
+* Panos Laganakos (Greek translation)
+* Ilya Filippov and Andy Mikhailenko (Russian translation)
+* Jarek Zgoda (Polish translation)
+* Meir Kriheli (Hebrew translation)
+* Italo Maia (Brazilian Portuguese translation)
+* Shinya Okano (Japanese translation)
+* A. Al-Ibrahim (Arabic translation)
+* Ernesto Rico Schmidt (Spanish translation)
+* Vladislav Mitov (Bulgarian translation)
+* Leonardo Manuel Rocha (Argentinean Spanish translation)
+* Emil Stenström (Swedish translation)
+* Liang Feng (Chinese translations)
+* Nebojsa Djordjevic (Serbian translation)
+* Nicola Larosa (Italian translation)
+* Joost Cassee (Dutch translation)
+* Björn Kristinsson (Icelandic translation)
+* Rune Bromer (Danish translation)
+* Domen Kožar (Slovenian translation)
+* Young Gyu Park (Korean translation)
@@ -0,0 +1,232 @@
+=============================
+django-registration changelog
+=============================
+
+
+Version 0.7, 6 November 2008:
+-----------------------------
+
+* Project hosting moved from Google Code to Bitbucket, and from a
+ Subversion repository to Mercurial.
+
+* Added test suite.
+
+* Full Django 1.0 compatibility.
+
+* Registration and activation views now accept an ``extra_context``
+ argument, identical to the way that argument works in Django's
+ generic views.
+
+* Added a custom management command for cleaning up expired
+ registrations; you can now run ``manage.py cleanupregistration`` to
+ handle this.
+
+* BACKWARDS-INCOMPATIBLE CHANGE: The "username" field in
+ ``RegistrationForm`` is now a ``RegexField``.
+
+* BACKWARDS-INCOMPATIBLE CHANGE: Removed the standalone script for
+ deleting expired user registrations; use the new management command
+ instead.
+
+
+Version 0.6, 29 July 2008:
+--------------------------
+
+* Packaged from revision 166 in Subversion.
+
+* Fixed a multiple-objects exception in
+ ``RegistrationFormUniqueEmail`` when multiple users already have the
+ same email address.
+
+* Changed the ``success_url`` of the ``register()`` view to use
+ reverse URL resolution.
+
+* Added an ``extra_context`` argument to the ``register`` and
+ ``activate`` views, mimicking its functionality in Django's generic
+ views.
+
+* BACKWARDS-INCOMPATIBLE CHANGE: Switched the admin declaration to be
+ compliant with the newforms-admin refactor; the admin declaration
+ now lives in ``registration/admin.py``.
+
+* BACKWARDS-INCOMPATIBLE CHANGE: Switched form imports from using
+ ``django.newforms`` to using ``django.forms``; the old style now
+ raises a deprecation warning on Django trunk and on Django 1.0
+ alpha.
+
+
+Version 0.5, 4 June 2008:
+-------------------------
+
+* Packaged from revision 155 in Subversion.
+
+* Added Serbian translation.
+
+* Added Italian translation.
+
+* Username/email uniqueness checks are now case-insensitive. This is
+ potentially backwards-incompatible if you relied on them being
+ case-sensitive, but I don't know of any reason why you'd be doing
+ that.
+
+* Included forms now use lazy translations.
+
+* The ``register`` view can now handle files submitted for use in form
+ processing.
+
+* Reactivation of a manually-deactivated account is now prevented by
+ changing the activation key, on successful activation, to a dummy
+ string which will fail on subsequent activation attempts.
+
+
+Version 0.4p2, 10 Feburary 2008:
+--------------------------------
+
+* Added Brazilian Portuguese translation.
+
+* Added Japanese translation.
+
+* Added Hebrew translation.
+
+* Minor documentation fixes.
+
+
+Version 0.4p1, 16 December 2007:
+--------------------------------
+
+* Packaged from revision 129 in Subversion.
+
+* Added Polish translation.
+
+
+Version 0.4, 8 December 2007:
+-----------------------------
+
+* Packaged from revision 122 in Subversion.
+
+* Added Greek translation.
+
+* Added Russian translation.
+
+* Changed ``maxlength`` to ``max_length`` now that Django issues a
+ deprecation warning for it.
+
+* BACKWARDS-INCOMPATIBLE CHANGE: Changed the password validation to be
+ on ``clean()`` instead of ``clean_password2()``. This means that
+ errors from this must be accessed via ``non_field_errors()``.
+
+
+Version 0.3p5, 6 October 2007:
+------------------------------
+
+* Packaged from revision 112 in Subversion.
+
+* Added German translation.
+
+* Fixed a mismatch between the default ``RegistrationForm``'s maximum
+ length on email addresses and the actual maximum length on Django's
+ ``User`` model.
+
+* Fixed a situation where bad input for the ``password1`` field on
+ ``RegistrationForm`` could cause validation of ``password2`` to fail
+ with an exception.
+
+
+Version 0.3p4, 4 October 2007:
+------------------------------
+
+* Packaged from revision 101 in Subversion.
+
+* BACKWARDS-INCOMPATIBLE CHANGE: In response to larger numbers of
+ complaints from people trying to use the example templates as-is,
+ the example templates have been removed.
+
+
+Version 0.3p2, 23 September 2007:
+---------------------------------
+
+* Packaged from revision 100 in Subversion.
+
+* Fixed ``activate`` view to actually take the ``template_name``
+ argument.
+
+
+Version 0.3p1, 22 September 2007:
+---------------------------------
+
+* Packaged from revision 99 in Subversion.
+
+* Fixed a typo in docs/overview.txt.
+
+* Fixed a typo in bin/delete_expired_users.py.
+
+* Added French translation.
+
+
+Version 0.3, 19 September 2007:
+-------------------------------
+
+Packaged from revision 89 in Subversion; download at
+http://django-registration.googlecode.com/files/registration-0.3.tar.gz
+
+* Changed ``register`` and ``activate`` views to accept
+ ``template_name`` keyword argument for selecting a custom template.
+
+* Changed ``register`` view to accept ``form_class`` keyword
+ argument specifying the form to use.
+
+* BACKWARDS-INCOMPATIBLE CHANGE: Changed
+ ``RegistrationManager.create_inactive_user`` to use a template for
+ the subject of the activation email.
+
+* BACKWARDS-INCOMPATIBLE CHANGE: Removed the ``tos`` field from
+ ``RegistrationForm``; if you were relying on it, switch to using
+ ``RegistrationFormTermsOfService`` instead.
+
+* BACKWARDS-INCOMPATIBLE CHANGE: The activation email template now
+ receives the current ``Site`` object as the context variable
+ ``site``, and the ``current_site`` variable, which only held the
+ domain, is no longer available.
+
+* Added script ``bin/delete_expired_users.py`` with instructions on
+ how to use it as a cron job to clean up expired/inactive accounts.
+
+* Marked strings for translation and added ``locale`` directory so
+ that translations can be added.
+
+* Updated to deal with merge of Django's Unicode branch into trunk;
+ now using Unicode-aware functions everywhere.
+
+
+Version 0.2, 29 May 2007:
+-------------------------
+
+Packaged from revision 76 in Subversion; download at
+http://django-registration.googlecode.com/files/registration-0.2.tar.gz
+
+* Added ability to specify a callback in
+ ``RegistrationManager.create_inactive_user`` or in the ``register``
+ view to enable creation of site-specific user profile.
+
+* Separated out the logic of creating the profile into a new method on
+ ``RegistrationManager``: ``create_profile``.
+
+* Added URLConf support for various useful views in
+ ``django.contrib.auth``.
+
+* BACKWARDS-INCOMPATIBLE CHANGE: removed the ``key_generated`` field
+ from ``RegistrationProfile``; activation key expiration is now
+ calculated based on the ``date_joined`` field in the ``User`` model.
+ Drop the ``key_generated`` column from your database when upgrading
+ from 0.1.
+
+
+Version 0.1, 23 May 2007:
+-------------------------
+
+Packaged from revision 56 in Subversion; download at
+http://django-registration.googlecode.com/files/registration-0.1.tar.gz
+
+* First packaged version using distutils.
+
+* Added docs/ directory and overview.
@@ -0,0 +1,24 @@
+Thanks for downloading django-registration.
+
+To install it, run the following command inside this directory:
+
+ python setup.py install
+
+If you have the Python ``easy_install`` utility available, you can
+also type the following to download and install in one step::
+
+ easy_install django-registration
+
+Or if you're using ``pip``::
+
+ pip install django-registration
+
+Or if you'd prefer you can simply place the included ``registration``
+directory somewhere on your Python path, or symlink to it from
+somewhere on your Python path; this is useful if you're working from a
+Mercurial checkout.
+
+Note that this application requires Python 2.3 or later, and a
+functional installation of Django 1.` or newer. You can obtain Python
+from http://www.python.org/ and Django from
+http://www.djangoproject.com/.
@@ -0,0 +1,28 @@
+Copyright (c) 2007-2009, James Bennett
+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 author nor the names of other
+ 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
+OWNER 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.
@@ -0,0 +1,8 @@
+include CHANGELOG
+include INSTALL
+include LICENSE
+include MANIFEST.in
+include README
+include AUTHORS
+recursive-include docs *
+recursive-include registration/locale *
@@ -0,0 +1,13 @@
+========================
+Django user registration
+========================
+
+This is a fairly simple user-registration application for Django_,
+designed to make allowing user signups as painless as possible. It
+requires a functional installation of Django 1.1 or newer, but has no
+other dependencies.
+
+For installation instructions, see the file "INSTALL" in this
+directory; for instructions on how to use this application, and on
+what it provides, see the file "quickstart.rst" in the "docs/"
+directory.
Oops, something went wrong.

0 comments on commit 7444dcd

Please sign in to comment.