def validate_properties(self, model, context=None):
result = Result()<EOL>for property_name in self.properties:<EOL><INDENT>prop = self.properties[property_name]<EOL>value = self.get(model, property_name)<EOL>errors = prop.validate(<EOL>value=value,<EOL>model=model,<EOL>context=context<EOL>)<EOL>if errors:<EOL><INDENT>result.add_errors(<EOL>errors=errors,<EOL>property_name=property_name<EOL>)<EOL><DEDENT><DEDENT>return result<EOL>
Validate simple properties
Performs validation on simple properties to return a result object.
:param model:  object or dict
:param context: object, dict or None
:return: shiftschema.result.Result