Exemple #1
0
 def validate_body(self, field):
     missing = get_missing_placeholders('registration-email', field.data, regform=self.regform, registration=None)
     if missing:
         raise ValidationError(_('Missing placeholders: {}').format(', '.join(missing)))
Exemple #2
0
 def validate_email_body(self, field):
     missing = get_missing_placeholders("registration-invitation-email", field.data, invitation=None)
     if missing:
         raise ValidationError(_("Missing placeholders: {}").format(", ".join(missing)))
Exemple #3
0
 def validate_body(self, field):
     missing = get_missing_placeholders('survey-link-email', field.data, event=None, survey=None)
     if missing:
         raise ValidationError(_('Missing placeholders: {}').format(', '.join(missing)))
Exemple #4
0
 def validate_body(self, field):
     missing = get_missing_placeholders('registration-email', field.data, regform=self.regform, registration=None)
     if missing:
         raise ValidationError(_('Missing placeholders: {}').format(', '.join(missing)))
Exemple #5
0
 def validate_body(self, field):
     missing = get_missing_placeholders('agreement-email', field.data, definition=self._definition, agreement=None)
     if missing:
         raise ValidationError(_('Missing placeholders: {}').format(', '.join(missing)))
Exemple #6
0
 def validate_body(self, field):
     missing = get_missing_placeholders('survey-link-email', field.data, event=None, survey=None)
     if missing:
         raise ValidationError(_('Missing placeholders: {}').format(', '.join(missing)))