def set_status(self, new_status, notes=None):
self.status_id = new_status<EOL>try:<EOL><INDENT>self.status['<STR_LIT:id>'] = self.status_id<EOL>self.status['<STR_LIT:name>'] = None<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT>self.save(notes)<EOL>
Save all changes and set to the given new_status