Did I find the right examples for you? yes no

All Samples(22)  |  Call(13)  |  Derive(0)  |  Import(9)

src/d/j/django_couchdb_utils-0.5/django_couchdb_utils/openid_consumer/registration.py   django_couchdb_utils(Download)
from django_couchdb_utils.auth.models import User
from datetime import datetime
from django.http import Http404
from django_openid import signed
from django.conf import settings
    def create_user(self, request, data, openid=None):
        user = User(
            username = data['username'],
            first_name = data.get('first_name', ''),
            last_name = data.get('last_name', ''),

src/d/j/django-couchdb-utils-HEAD/django_couchdb_utils/openid_consumer/registration.py   django-couchdb-utils(Download)
from django_couchdb_utils.auth.models import User
from datetime import datetime
from django.http import Http404
from django_openid import signed
from django.conf import settings
    def create_user(self, request, data, openid=None):
        user = User(
            username = data['username'],
            first_name = data.get('first_name', ''),
            last_name = data.get('last_name', ''),

src/d/j/django_couchdb_utils-0.5/django_couchdb_utils/openid_consumer/forms.py   django_couchdb_utils(Download)
from django import forms
from django_couchdb_utils.auth.models import User
from django_openid.forms import RegistrationForm as DjangoOpenidRegistrationForm, \
                                RegistrationFormPasswordConfirm as DjangoOpenidRegistrationFormPasswordConfirm
from couchdbkit.exceptions import ResourceNotFound
    def save(self):
        user = User(**self.cleaned_data)
        return user.store()
 
    def clean_email(self):

src/d/j/django-couchdb-utils-HEAD/django_couchdb_utils/openid_consumer/forms.py   django-couchdb-utils(Download)
from django import forms
from django_couchdb_utils.auth.models import User
from django_openid.forms import RegistrationForm as DjangoOpenidRegistrationForm, \
                                RegistrationFormPasswordConfirm as DjangoOpenidRegistrationFormPasswordConfirm
from couchdbkit.exceptions import ResourceNotFound
    def save(self):
        user = User(**self.cleaned_data)
        return user.store()
 
    def clean_email(self):

src/d/j/django_couchdb_utils-0.5/django_couchdb_utils/openid_consumer/consumer.py   django_couchdb_utils(Download)
                                   CookieConsumer as DjangoOpenidCookieConsumer
from .models import DjangoCouchDBOpenIDStore, UserOpenidAssociation
from django_couchdb_utils.auth.models import User
from django.contrib.auth import login
from couchdbkit.exceptions import ResourceNotFound

src/d/j/django_couchdb_utils-0.5/django_couchdb_utils/auth/backends.py   django_couchdb_utils(Download)
from django.conf import settings
from django.contrib.auth.models import check_password
 
from django_couchdb_utils.auth.models import User
 

src/d/j/django-couchdb-utils-HEAD/django_couchdb_utils/auth/management/commands/migrate_users.py   django-couchdb-utils(Download)
from django.core.management.base import BaseCommand
from optparse import make_option
from django.contrib.auth.models import User as Dj_User
from django_couchdb_utils.auth.models import User
 
        data = dict( (k, v) for (k, v) in data.items() if not k.startswith('_') and k != 'user_id')
 
        new_user = User.get_user(data['username']) or User()
 
        for attrib, val in data.items():

src/d/j/django-couchdb-utils-HEAD/django_couchdb_utils/openid_consumer/consumer.py   django-couchdb-utils(Download)
                                   CookieConsumer as DjangoOpenidCookieConsumer
from .models import DjangoCouchDBOpenIDStore, UserOpenidAssociation
from django_couchdb_utils.auth.models import User
from django.contrib.auth import login
from couchdbkit.exceptions import ResourceNotFound

src/d/j/django_couchdb_utils-0.5/django_couchdb_utils/auth/tests.py   django_couchdb_utils(Download)
from django_couchdb_utils.auth import app_label
from django_couchdb_utils.test.utils import DbTester
from django_couchdb_utils.auth.models import User, UserProfile
 
class AuthTests(DbTester):
            'email': 'user@host.com',
        }
        user = User(**data)
        user.save()
 
            'email': 'user@host.com',
        }
        user = User(**data)
        user.save()
 
        user2 = User(**data)
            'email': 'user@host.com',
        }
        user = User(**data)
        user.save()