La version 5 de Planète Casio. Regroupe le forum, les programmes, les tutoriel, les sprites et tous les autres outils développés par nos soins.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
607 B

from wtforms.fields.simple import EmailField
from wtforms.validators import Optional, ValidationError
def antibot_validator(form, field):
raise ValidationError('Bas les pattes!')
return True
class AntibotField(EmailField):
def __init__(self, *args, **kwargs):
"L'adresse email",
validators=[Optional(), antibot_validator],
def __call__(self, *args, **kwargs):
return super().__call__(*args, **kwargs,
class_="abfield", autocomplete="no", tabindex="-1")