

@web.asynchronous
@gen.engine
def post(self, *args, **kwargs):
    'Handle creation of an item.\n\n        :param args:\n        :param kwargs:\n\n        '
    args.initialize_post()
    if (not self.has_create_permission()):
        LOGGER.debug('Does not have write_permission')
        self.set_status(403, self.status_message('Creation Forbidden'))
        self.finish()
        return
    result = (yield self.model.save())
    if result:
        self.set_status(201, self.status_message('Created'))
        self.add_headers()
        self.finish(self.model.as_dict())
    else:
        self.set_status(507, self.status_message('Creation Failed'))
        self.finish()

dataset/ETHPy150Open gmr/tinman/tinman/handlers/mixins.py ModelAPIMixin.post/VarMisuse@28/62 `self`->`args`