Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(32)  |  Call(20)  |  Derive(0)  |  Import(12)

src/d/j/django-oscar-HEAD/oscar/apps/customer/forms.py   django-oscar(Download)
from oscar.core.loading import get_profile_class, get_class, get_model
from oscar.core.compat import get_user_model, existing_user_fields, urlparse
from oscar.apps.customer.utils import get_password_reset_url, normalise_email
from oscar.core.validators import password_validators
 
    def clean_email(self):
        email = normalise_email(self.cleaned_data['email'])
        if User._default_manager.filter(email=email).exists():
            raise forms.ValidationError(
                _("A user with that email address already exists"))
        level in ``django.contrib.auth.models.User``.
        """
        email = normalise_email(self.cleaned_data['email'])
        if User._default_manager.filter(
                email=email).exclude(id=self.user.id).exists():
        def clean_email(self):
            email = normalise_email(self.cleaned_data['email'])
            if User._default_manager.filter(
                    email=email).exclude(id=self.instance.user.id).exists():
                raise ValidationError(

src/d/j/django-oscar-HEAD/oscar/apps/customer/auth_backends.py   django-oscar(Download)
from django.contrib.auth.backends import ModelBackend
from django.core.mail import mail_admins
from django.core.exceptions import ImproperlyConfigured
from oscar.apps.customer.utils import normalise_email
 
    def authenticate(self, email=None, password=None, *args, **kwargs):
        if email is None:
            if 'username' not in kwargs or kwargs['username'] is None:
                return None
            clean_email = normalise_email(kwargs['username'])
        else:
            clean_email = normalise_email(email)

src/d/j/django-oscar-HEAD/oscar/apps/checkout/forms.py   django-oscar(Download)
 
from oscar.apps.address.forms import AbstractAddressForm
from oscar.apps.customer.utils import normalise_email
from oscar.core.compat import get_user_model
 
    def clean_username(self):
        return normalise_email(self.cleaned_data['username'])
 
    def clean(self):
        if self.is_guest_checkout() or self.is_new_account_checkout():
            if 'password' in self.errors:
                del self.errors['password']
            if 'username' in self.cleaned_data:
                email = normalise_email(self.cleaned_data['username'])

src/d/j/django-oscar-0.7/oscar/apps/customer/forms.py   django-oscar(Download)
from oscar.core.loading import get_profile_class, get_class, get_model
from oscar.core.compat import get_user_model, existing_user_fields, urlparse
from oscar.apps.customer.utils import get_password_reset_url, normalise_email
from oscar.core.validators import password_validators
 
    def clean_email(self):
        email = normalise_email(self.cleaned_data['email'])
        if User._default_manager.filter(email=email).exists():
            raise forms.ValidationError(
                _("A user with that email address already exists"))
        level in ``django.contrib.auth.models.User``.
        """
        email = normalise_email(self.cleaned_data['email'])
        if User._default_manager.filter(
                email=email).exclude(id=self.user.id).exists():
        def clean_email(self):
            email = normalise_email(self.cleaned_data['email'])
            if User._default_manager.filter(
                    email=email).exclude(id=self.instance.user.id).exists():
                raise ValidationError(

src/d/j/django-oscar-0.7/oscar/apps/customer/auth_backends.py   django-oscar(Download)
from django.contrib.auth.backends import ModelBackend
from django.core.mail import mail_admins
from django.core.exceptions import ImproperlyConfigured
from oscar.apps.customer.utils import normalise_email
 
    def authenticate(self, email=None, password=None, *args, **kwargs):
        if email is None:
            if not 'username' in kwargs or kwargs['username'] is None:
                return None
            clean_email = normalise_email(kwargs['username'])
        else:
            clean_email = normalise_email(email)

src/d/j/django-oscar-0.7/oscar/apps/checkout/forms.py   django-oscar(Download)
 
from oscar.apps.address.forms import AbstractAddressForm
from oscar.apps.customer.utils import normalise_email
from oscar.core.compat import get_user_model
 
    def clean_username(self):
        return normalise_email(self.cleaned_data['username'])
 
    def clean(self):
        if self.is_guest_checkout() or self.is_new_account_checkout():
            if 'password' in self.errors:
                del self.errors['password']
            if 'username' in self.cleaned_data:
                email = normalise_email(self.cleaned_data['username'])

src/d/j/django-oscar-HEAD/oscar/apps/dashboard/users/views.py   django-oscar(Download)
    UpdateView, FormView
from django.views.generic.detail import SingleObjectMixin
from oscar.apps.customer.utils import normalise_email
 
from oscar.views.generic import BulkEditMixin
 
        if data['email']:
            email = normalise_email(data['email'])
            queryset = queryset.filter(email__startswith=email)
            self.desc_ctx['email_filter'] \

src/d/j/django-oscar-HEAD/oscar/apps/dashboard/partners/views.py   django-oscar(Download)
from django.views import generic
 
from oscar.apps.customer.utils import normalise_email
from oscar.core.loading import get_classes, get_model
from oscar.core.compat import get_user_model
    def get_queryset(self):
        if self.form.is_valid():
            email = normalise_email(self.form.cleaned_data['email'])
            return User.objects.filter(email__icontains=email)
        else:

src/d/j/django-oscar-HEAD/oscar/apps/dashboard/communications/forms.py   django-oscar(Download)
from django import forms
from oscar.core.loading import get_model
from django.template import Template, TemplateSyntaxError
from django.utils.translation import ugettext_lazy as _
from oscar.apps.customer.utils import normalise_email
    def clean_preview_email(self):
        email = normalise_email(self.cleaned_data['preview_email'])
        if not self.send_preview:
            return email
        if not email:

src/d/j/django-oscar-0.7/oscar/apps/dashboard/users/views.py   django-oscar(Download)
    UpdateView, FormView
from django.views.generic.detail import SingleObjectMixin
from oscar.apps.customer.utils import normalise_email
 
from oscar.views.generic import BulkEditMixin
 
        if data['email']:
            email = normalise_email(data['email'])
            queryset = queryset.filter(email__startswith=email)
            self.desc_ctx['email_filter'] \

  1 | 2  Next