def is_valid_email(message=None):
  if message is None:
    message = lazy_gettext(u'You have to enter a valid e-mail address.')
  def validator(form, value):
    if len(value) > 250 or _mail_re.match(value) is None:
      raise ValidationError(message)
  return validator
Upload content for a model.
dataset/ETHPy150Open IanLewis/kay/kay/utils/validators.py/is_valid_email--crossover with--dataset/ETHPy150Open exosite/exoline/exoline/plugins/provision.py/Plugin.content.put