Skip to content

Commit

Permalink
django reg
Browse files Browse the repository at this point in the history
  • Loading branch information
tpetr committed Feb 13, 2011
1 parent 3408859 commit 66fea3c
Show file tree
Hide file tree
Showing 93 changed files with 6,535 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/registration
5 changes: 5 additions & 0 deletions src/django-registration/.hg_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repo: 54211b4bb6c6c1c4698b76a63a366f05d7636e78
node: d36a38202ee3d09d342b000f4ff634296f90df49
branch: default
latesttag: v0.7
latesttagdistance: 186
6 changes: 6 additions & 0 deletions src/django-registration/.hgignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
syntax: glob
*.pyc
dist
MANIFEST
_build
_static
27 changes: 27 additions & 0 deletions src/django-registration/.hgtags
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
195dbb4707d01307bea99ca51fd439f37cec098b v0.1
de1e97d7b5cb2b67b29f0e139bbda9bb1c47b31f v0.2
673c8f0b5faf95aa0bc8fd00ddd1f36dae05669e v0.3
a8aaa47fbf44f33e555c46d7bf55e216dc247f96 v0.3p1
01c5ad085a0a8b834a8ba4ca3813536f8d480848 v0.3p2
1987d9bf18ffa702c31c9d769afa1eeb36626e7f v0.3p4
fc2020d59b3ab1ac3c9d3a59cadd71e61bafc8f7 v0.3p5
63229f323b2e5b5eac198c5e717926250452e32f v0.4
9f0ea4d78035539137a91ca81368c63fba51b1ca v0.4p1
0000000000000000000000000000000000000000 v0.1
0000000000000000000000000000000000000000 v0.2
0000000000000000000000000000000000000000 v0.3
0000000000000000000000000000000000000000 v0.3p1
0000000000000000000000000000000000000000 v0.3p2
0000000000000000000000000000000000000000 v0.3p4
0000000000000000000000000000000000000000 v0.3p5
0000000000000000000000000000000000000000 v0.4
0000000000000000000000000000000000000000 v0.4p1
3fcf78590fc7a013dec8e112ea586ab22701cb9c v0.1
0000000000000000000000000000000000000000 v0.1
d28e5a770ff890587181024a62f4ed125f26fb1a v0.1
e5110bb8d48a07b4cfa6ec77cf76ca8ab2fd99e9 v0.2
f41e8a239016661f7489e2e9929eb006b8a33d51 v0.3
4d2a725d8c188edc18705462167f5fbf3bfc02ea v0.4
dc2bf754aa9462c1d9a1dd70503e14ff4e0e0b9c v0.5
e263c551ef7be3d99813effdc7a4f22041539f83 v0.6
d073602dc103edfae55419b043af1f4b6a58e1e5 v0.7
29 changes: 29 additions & 0 deletions src/django-registration/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
The primary author of django-registration is James Bennett
<[email protected]>, 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)
232 changes: 232 additions & 0 deletions src/django-registration/CHANGELOG
Original file line number Diff line number Diff line change
@@ -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.
28 changes: 28 additions & 0 deletions src/django-registration/INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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 -Z django-registration

(the ``-Z`` flag is required to force ``easy_install`` to do a normal
source install rather than a zipped egg; django-registration cannot be
used from a zipped egg install)

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/.
28 changes: 28 additions & 0 deletions src/django-registration/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Copyright (c) 2007-2010, 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.
8 changes: 8 additions & 0 deletions src/django-registration/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include CHANGELOG
include INSTALL
include LICENSE
include MANIFEST.in
include README
include AUTHORS
recursive-include docs *
recursive-include registration/locale *
13 changes: 13 additions & 0 deletions src/django-registration/README
Original file line number Diff line number Diff line change
@@ -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.
Loading

0 comments on commit 66fea3c

Please sign in to comment.