[Python-modules-commits] r6490 - in packages/python-django-registration/trunk/debian (4 files)

speijnik-guest at users.alioth.debian.org speijnik-guest at users.alioth.debian.org
Sat Sep 13 11:39:50 UTC 2008


    Date: Saturday, September 13, 2008 @ 11:39:47
  Author: speijnik-guest
Revision: 6490

Added debian/patches/01_validators_removed.patch (Closes: #498086).
Updated python-django dependency.

Added:
  packages/python-django-registration/trunk/debian/patches/00list
  packages/python-django-registration/trunk/debian/patches/01_validators_removed.patch
Modified:
  packages/python-django-registration/trunk/debian/changelog
  packages/python-django-registration/trunk/debian/control

Modified: packages/python-django-registration/trunk/debian/changelog
===================================================================
--- packages/python-django-registration/trunk/debian/changelog	2008-09-12 17:37:48 UTC (rev 6489)
+++ packages/python-django-registration/trunk/debian/changelog	2008-09-13 11:39:47 UTC (rev 6490)
@@ -1,3 +1,15 @@
+python-django-registration (0.6-3) experimental; urgency=low
+
+  [ Stephan Peijnik ]
+  * debian/control:
+    - Updated dependency on python-django (>= 1.0).
+  * debian/patches/01_validators_removed.patch:
+    - Pulled in bugfixes in revisions 167 and 168 from upstream SVN.
+      This patch fixes the bug introduced by the removal of
+      django.core.validators in python-django 1.0-1. (Closes: #498086)
+
+ -- Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>  Sat, 13 Sep 2008 13:27:16 +0200
+
 python-django-registration (0.6-2) experimental; urgency=low
 
   * debian/control:

Modified: packages/python-django-registration/trunk/debian/control
===================================================================
--- packages/python-django-registration/trunk/debian/control	2008-09-12 17:37:48 UTC (rev 6489)
+++ packages/python-django-registration/trunk/debian/control	2008-09-13 11:39:47 UTC (rev 6490)
@@ -5,14 +5,14 @@
 Uploaders: Raphael Hertzog <hertzog at debian.org>, David Spreen <netzwurm at debian.org> 
 Standards-Version: 3.8.0
 Build-Depends: debhelper (>= 5.0.37.2), python-dev, cdbs (>= 0.4.42)
-Build-Depends-Indep: python-support (>= 0.3), python-docutils, python-django (>= 1.0~beta1)
+Build-Depends-Indep: python-support (>= 0.3), python-docutils, python-django (>= 1.0)
 Homepage: http://code.google.com/p/django-registration/
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-django-registration/trunk/
 Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/python-django-registration/trunk/?op=log
 
 Package: python-django-registration
 Architecture: all
-Depends: ${python:Depends}, python-django (>= 1.0~beta1)
+Depends: ${python:Depends}, python-django (>= 1.0)
 Priority: optional
 Description: A user-registration application for Django
  This is a fairly simple user-registration application for Django,

Added: packages/python-django-registration/trunk/debian/patches/00list
===================================================================
--- packages/python-django-registration/trunk/debian/patches/00list	                        (rev 0)
+++ packages/python-django-registration/trunk/debian/patches/00list	2008-09-13 11:39:47 UTC (rev 6490)
@@ -0,0 +1 @@
+01_validators_removed.patch

Added: packages/python-django-registration/trunk/debian/patches/01_validators_removed.patch
===================================================================
--- packages/python-django-registration/trunk/debian/patches/01_validators_removed.patch	                        (rev 0)
+++ packages/python-django-registration/trunk/debian/patches/01_validators_removed.patch	2008-09-13 11:39:47 UTC (rev 6490)
@@ -0,0 +1,35 @@
+Index: registration/forms.py
+===================================================================
+--- registration/forms.py	(revision 166)
++++ registration/forms.py	(revision 168)
+@@ -5,7 +5,6 @@
+ 
+ 
+ from django import forms
+-from django.core.validators import alnum_re
+ from django.utils.translation import ugettext_lazy as _
+ from django.contrib.auth.models import User
+ 
+@@ -33,9 +32,10 @@
+     ``RegistrationProfile.objects.create_inactive_user()``.
+     
+     """
+-    username = forms.CharField(max_length=30,
+-                               widget=forms.TextInput(attrs=attrs_dict),
+-                               label=_(u'username'))
++    username = forms.RegexField(regex=r'^\w+$',
++                                max_length=30,
++                                widget=forms.TextInput(attrs=attrs_dict),
++                                label=_(u'username'))
+     email = forms.EmailField(widget=forms.TextInput(attrs=dict(attrs_dict,
+                                                                maxlength=75)),
+                              label=_(u'email address'))
+@@ -50,8 +50,6 @@
+         in use.
+         
+         """
+-        if not alnum_re.search(self.cleaned_data['username']):
+-            raise forms.ValidationError(_(u'Usernames can only contain letters, numbers and underscores'))
+         try:
+             user = User.objects.get(username__iexact=self.cleaned_data['username'])
+         except User.DoesNotExist:




More information about the Python-modules-commits mailing list