- html = self.server.jinja.\
- get_template('msg.html').render(msg=error)
- self._send_html(html, error.http_code)
+ for cls in (Day, Todo, Condition, Process, ProcessStep):
+ assert hasattr(cls, 'empty_cache')
+ cls.empty_cache()
+ ctx = {'msg': error}
+ self._send_html('msg.html', ctx, error.http_code)