def get(self, *uriargs): """ Parameters: None Response: publicContextList Errors: None """ try: context_view = Context() public_context_view = yield context_view.admin_get_all() self.set_status(200) self.write(json.dumps(public_context_view)) # TODO output filter + json except KeyError: # TODO there are some error that can be returned ? self.set_status(444) self.write({'error_message': 'do not exist but TODO', 'error_code' : 12345}) self.finish()