@tornado.gen.coroutine
    def put(self):
        params = self.params.getParamsParse()
        obj = {key: value for key, value in params.items() if key is not '_id'}
        oid = self.getIdDict()
        obj_validate = self.schematic(params)
        try:
            obj_validate.validate()
            result = yield self.collection.update(oid, obj, upsert=False)
            self.setResponseDictSuccess({"_id": str(result)})
        except __HOLE__ as e:
            self.setResponseDictErrors(e.messages)
        return
dataset/ETHPy150Open tgonzales/mingus/mingus/resources.py/ResourceModel.put