

@web.asynchronous
@gen.engine
def get(self, *args, **kwargs):
    'Handle reading of the model\n\n        :param args:\n        :param kwargs:\n\n        '
    self.model = self.get_model(kwargs.get('id'))
    result = (yield self.model.fetch())
    if (not result):
        LOGGER.debug('Not found')
        self.not_found()
        return
    if (not self.has_read_permission()):
        LOGGER.debug('Permission denied')
        self.permission_denied()
        return
    self.add_headers()
    self.finish(self.model_json())

dataset/ETHPy150Open gmr/tinman/tinman/handlers/mixins.py ModelAPIMixin.get/original