示例#1
0
 class F(Form):
     a = PrePostTestField(validators=[validators.Length(max=1, message="too long")])
示例#2
0
文件: i18n.py 项目: devkral/fastforms
 class F2(form.Form):
     a = StringField(
         validators=[validators.DataRequired(),
                     validators.Length(max=3)])
示例#3
0
文件: i18n.py 项目: devkral/fastforms
 class F3(form.Form):
     a = StringField(validators=[validators.Length(max=1)])
示例#4
0
文件: i18n.py 项目: devkral/fastforms
    class F2(form.Form):
        class Meta:
            def get_translations(self, form):
                return Lower_Translator()

        a = StringField(label='', validators=[validators.Length(max=5)])