@tornado.gen.coroutine
    def post(self):
        params = self.params.getParamsParse()

        if params in 'bulk':
            try:
                self.bulk()
                self.setResponseDictSuccess({"bulk":"Implemented"})
            except ValidationError as e:
                self.setResponseDictErrors(e)
            return

        else:
            obj = self.schematic(params)
            try:
                obj.validate()
                obj.created = datetime.datetime.utcnow()
                obj._id = ObjectId()
                result = yield self.collection.insert(obj.to_native())
                self.setResponseDictSuccess({"_id": str(result)})
            except ValidationError as e:
                self.setResponseDictErrors(e.messages)
            return
dataset/ETHPy150Open tgonzales/mingus/mingus/resources.py/ResourceModel.post/swapped operands of `in`