def filter_properties(self, model, context=None):
if model is None:<EOL><INDENT>return<EOL><DEDENT>for property_name in self.properties:<EOL><INDENT>prop = self.properties[property_name]<EOL>value = self.get(model, property_name)<EOL>if value is None:<EOL><INDENT>continue<EOL><DEDENT>filtered_value = prop.filter(<EOL>value=value,<EOL>model=model,<EOL>context=context<EOL>)<EOL>if value != filtered_value:  <EOL><INDENT>self.set(model, property_name, filtered_value)<EOL><DEDENT><DEDENT>
Filter simple properties
Runs filters on simple properties changing them in place.
:param model:  object or dict
:param context: object, dict or None
:return: None