Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: df3479656d
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 0.602 kb
# -*- coding: utf-8 -*-
import logging
from formencode import Schema, validators
from pyramid.i18n import TranslationStringFactory
_ = TranslationStringFactory('pylonshq')
log = logging.getLogger(__name__)
class LoginForm(Schema):
allow_extra_fields = True
filter_extra_fields = True
username = validators.UnicodeString(
not_empty=True,
messages={
'empty':_('Please enter your username.')
}
)
password = validators.UnicodeString(
not_empty=True,
messages={
'empty':_('Please enter your password.')
}
)
Jump to Line
Something went wrong with that request. Please try again.