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

All Samples(37)  |  Call(31)  |  Derive(0)  |  Import(6)

src/p/t/ptah_crowd-0.1/ptah_crowd/login.py   ptah_crowd(Download)
from pyramid.httpexceptions import HTTPFound
 
from ptah_crowd.settings import _, CFG_ID_CROWD
from ptah_crowd.memberprops import get_properties
 
class LoginForm(form.Form):
    """ Login form """
 
    id = 'login-form'
    title = _('Login')
 
    fields = form.Fieldset(
        form.fields.TextField(
            'login',
            title = _('Login Name'),
            'login',
            title = _('Login Name'),
            description = _('Login names are case sensitive, '\
                                'make sure the caps lock key is not enabled.'),
            default = ''),
 
        form.fields.PasswordField(
            'password',
            title = _('Password'),

src/p/t/ptah_crowd-0.1/ptah_crowd/schemas.py   ptah_crowd(Download)
from ptah.password import passwordValidator
 
from ptah_crowd.settings import _
 
 
 
    if ptah.auth_service.get_principal_bylogin(login) is not None:
        raise form.Invalid(node, _('Login already is in use.'))
 
 
RegistrationSchema = form.Fieldset(
 
    form.TextField(
        'name',
        title=_('Full Name'),
        'name',
        title=_('Full Name'),
        description=_("e.g. John Smith. This is how users "
                      "on the site will identify you."),
        ),
 
    form.TextField(
        'login',
        title = _('E-mail/Login'),

src/p/t/ptah_crowd-0.1/ptah_crowd/registration.py   ptah_crowd(Download)
 
from ptah_crowd.provider import CrowdFactory
from ptah_crowd.settings import _, CFG_ID_CROWD
from ptah_crowd.schemas import RegistrationSchema
from ptah_crowd.validation import initiate_email_validation
class Registration(form.Form):
    """ Ptah crowd registration form """
 
    label = _("Registration")
    fields = form.Fieldset(RegistrationSchema, PasswordSchema)

src/p/t/ptah_crowd-0.1/ptah_crowd/views.py   ptah_crowd(Download)
import ptah_crowd
from ptah import form
from ptah_crowd.settings import _
from ptah_crowd.module import CrowdModule
from ptah_crowd.provider import CrowdUser, CrowdFactory
        form.TextField(
            'term',
            title = _('Search term'),
            description = _('Ptah searches users by login and email'),
            missing = '',

src/p/t/ptah_crowd-0.1/ptah_crowd/resetpassword.py   ptah_crowd(Download)
from ptah.events import PrincipalPasswordChangedEvent
 
from ptah_crowd.settings import _
 
 
            'text',
            'login',
            title = _('Login Name'),
            description = _('Login names are not case sensitive.'),
            missing = '',

src/p/t/ptah_crowd-0.1/ptah_crowd/user.py   ptah_crowd(Download)
import ptah
import ptah_crowd
from ptah_crowd.settings import _
from ptah_crowd.module import CrowdModule
from ptah_crowd.provider import CrowdUser, CrowdFactory
class CreateUserForm(form.Form):
 
    csrf = True
    label = _('Create new user')
    fields = UserSchema
    fields = form.Fieldset(ManagerChangePasswordSchema)
 
    label = _('Change password')
    description = _('Please specify password for this users.')