2012-12-16 08:31:21 +00:00
|
|
|
from flask.ext.wtf import Form, TextField, BooleanField, TextAreaField
|
|
|
|
from flask.ext.wtf import Required, Length
|
2012-12-16 08:28:52 +00:00
|
|
|
|
|
|
|
class LoginForm(Form):
|
|
|
|
openid = TextField('openid', validators = [Required()])
|
|
|
|
remember_me = BooleanField('remember_me', default = False)
|
2012-12-16 08:31:21 +00:00
|
|
|
|
|
|
|
class EditForm(Form):
|
|
|
|
nickname = TextField('nickname', validators = [Required()])
|
|
|
|
about_me = TextAreaField('about_me', validators = [Length(min = 0, max = 140)])
|