Did I find the right examples for you? yes no

All Samples(25)  |  Call(11)  |  Derive(0)  |  Import(14)

src/b/e/betafarm-HEAD/apps/users/models.py   betafarm(Download)
from innovate.utils import get_partition_id, safe_filename, ImageStorage
 
from django_browserid.auth import default_username_algo
from tower import ugettext_lazy as _
 
        username is set (as is the case with users signed up via BrowserID).
        """
        return default_username_algo(self.user.email)
 
    @property

src/b/e/betafarm-HEAD/apps/users/cron.py   betafarm(Download)
from django.contrib.auth.models import User
 
from django_browserid.auth import default_username_algo
 
from innovate.utils import thumbnailify_image
        # make sure we don't delete any manually created users
        # e.g. admin
        if user.username == default_username_algo(user.email):
            logger.info('Deleting user %d with email %s', user.id, user.email)
            user.delete()

src/r/e/remo-HEAD/remo/profiles/management/commands/create_users.py   remo(Download)
from django.core.validators import email_re
 
from django_browserid.auth import default_username_algo
 
LOGGER = logging.getLogger("playdoh")

src/r/e/remo-HEAD/remo/profiles/migrations/0031_recalculate_usernames.py   remo(Download)
    def forwards(self, orm):
        from django.conf import settings
        from django_browserid.auth import default_username_algo
        USERNAME_ALGO = getattr(settings, 'BROWSERID_USERNAME_ALGO',
                                default_username_algo)

src/r/e/remo-HEAD/remo/profiles/views.py   remo(Download)
 
from django_statsd.clients import statsd
from django_browserid.auth import default_username_algo
from funfactory.helpers import urlparams
from product_details import product_details

src/r/e/remo-HEAD/remo/profiles/forms.py   remo(Download)
from django.utils.timezone import now
 
from django_browserid.auth import default_username_algo
from product_details import product_details
from pytz import common_timezones

src/r/e/remo-HEAD/remo/base/views.py   remo(Download)
from django import http
from django_browserid import BrowserIDException, get_audience, verify
from django_browserid.auth import default_username_algo
from django_browserid.views import Verify
from django.conf import settings

src/c/a/captain-HEAD/vendor/lib/python/django_browserid/tests/test_auth.py   captain(Download)
from mock import ANY, Mock, patch
 
from django_browserid.auth import BrowserIDBackend, default_username_algo, verify
from django_browserid.tests import mock_browserid
 
def new_user(email, username=None):
        """Creates a user with the specified email for testing."""
        if username is None:
            username = default_username_algo(email)
        return User.objects.create_user(username, email)

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/django_browserid/tests/test_auth.py   socorro(Download)
from mock import ANY, Mock, patch
 
from django_browserid.auth import BrowserIDBackend, default_username_algo
from django_browserid.base import MockVerifier
from django_browserid.tests import mock_browserid, TestCase
def new_user(email, username=None):
        """Creates a user with the specified email for testing."""
        if username is None:
            username = default_username_algo(email)
        return User.objects.create_user(username, email)

src/a/f/affiliates-HEAD/vendor-local/packages/django-browserid/django_browserid/tests/test_auth.py   affiliates(Download)
from mock import ANY, Mock, patch
 
from django_browserid.auth import BrowserIDBackend, default_username_algo
from django_browserid.base import MockVerifier
from django_browserid.tests import mock_browserid, TestCase
def new_user(email, username=None):
        """Creates a user with the specified email for testing."""
        if username is None:
            username = default_username_algo(email)
        return User.objects.create_user(username, email)

  1 | 2  Next