def total_user_annotation_count(self, userid): """ Return the count of all annotations for this user. This disregards permissions, private/public, etc and returns the total number of annotations the user has made (including replies). """ params = MultiDict({"limit": 0, "user": userid}) search = Search(self.request, stats=self.request.stats) search.clear() search.append_modifier(Limiter()) search.append_modifier(DeletedFilter()) search.append_modifier(UserFilter()) search_result = search.run(params) return search_result.total
def total_user_annotation_count(self, userid): """ Return the count of all annotations for this user. This disregards permissions, private/public, etc and returns the total number of annotations the user has made (including replies). """ params = MultiDict({"limit": 0, "user": userid}) search = Search(self.request, stats=self.request.stats) search.clear() search.append_modifier(Limiter()) search.append_modifier(DeletedFilter()) search.append_modifier(UserFilter()) search_result = search.run(params) return search_result.total
def search(pyramid_request, group_service): search = Search(pyramid_request) # Remove all default modifiers and aggregators except Sorter. search.clear() return search
def search(pyramid_request, group_service): # pylint:disable=unused-argument search = Search(pyramid_request) # Remove all default modifiers and aggregators except Sorter. search.clear() return search
def search(pyramid_request, group_service): search = Search(pyramid_request) # Remove all default modifiers and aggregators except Sorter. search.clear() return search
def search(pyramid_request): search = Search(pyramid_request) # Remove all default filters, aggregators, and matchers. search.clear() return search