def validate_mobile(self, key, value):
     return validator.is_string(self, key, value)
 def validate_postcode(self, key, value):
     return validator.is_string(self, key, value)
 def validate_phone(self, key, value):
     return validator.is_string(self, key, value)
 def validate_locality(self, key, value):
     return validator.is_string(self, key, value)
 def validate_address2(self, key, value):
     return validator.is_string(self, key, value)
 def validate_last_name(self, key, value):
     return validator.is_string(self, key, value)
Example #7
0
 def validate_outcome(self, key, value):
     value = value.upper()
     validator.has_value(
         self, key, value,
         ['CONTACTED', 'NOT HOME', 'NO ANSWER', 'NO RESPONSE'])
     return validator.is_string(self, key, value)
Example #8
0
 def validate_type(self, key, value):
     value = value.upper()
     validator.has_value(self, key, value,
                         ['IN-PERSON', 'EMAIL', 'PHONE', 'SMS'])
     return validator.is_string(self, key, value)