Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/core/paging_lister.py
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | def run(self, min_bound=None, max_bound=None, check_existence=False): | ||||
check_existence (bool): optional existence check (for | check_existence (bool): optional existence check (for | ||||
incremental lister whose sort | incremental lister whose sort | ||||
order is inverted) | order is inverted) | ||||
Returns: | Returns: | ||||
nothing | nothing | ||||
""" | """ | ||||
page = min_bound or '' | page = min_bound or 0 | ||||
loop_count = 0 | loop_count = 0 | ||||
self.min_page = min_bound | self.min_page = min_bound | ||||
self.max_page = max_bound | self.max_page = max_bound | ||||
while self.is_within_bounds(page, self.min_page, self.max_page): | while self.is_within_bounds(page, self.min_page, self.max_page): | ||||
logging.info('listing repos starting at %s' % page) | logging.info('listing repos starting at %s' % page) | ||||
Show All 36 Lines |