def get(self, **kwargs):
        values = self.__only_matches(self, kwargs)
        if len(values) == 0:
            raise DoesNotExist(
                "%s matching query does not exist." % self._name
            )
        elif len(values) > 1:
            raise MultipleObjectsReturned(
                "%d items returned, instead of 1" % len(values)
            )

        return values[0]
Add items from a ResourceContainer resources to this ChangeList
dataset/ETHPy150Open MongoEngine/mongoengine/mongoengine/base/datastructures.py/EmbeddedDocumentList.get--crossover with--dataset/ETHPy150Open resync/resync/resync/change_list.py/ChangeList.add_changed_resources