def filter(self, **filters):
        """Returns a ResourceSet object with Resource objects filtered by a dict of filters"""
        if self.resource_class.query_filter is None or self.resource_class.container_filter is None:
            raise ResourceBadMethodError

        if not filters:
            raise ResourceNoFiltersProvidedError

        try:
            self.url = '{0}{1}'.format(self.redmine.url, self.resource_class.query_filter.format(**filters))
            self.container = self.resource_class.container_filter.format(**filters)
        except __HOLE__:
            raise ResourceFilterError

        self.params = self.prepare_params(filters)
        return ResourceSet(self)
dataset/ETHPy150Open maxtepkeev/python-redmine/redmine/managers.py/ResourceManager.filter