Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/core/lister_base.py
Show First 20 Lines • Show All 408 Lines • ▼ Show 20 Lines | def task_dict(self, origin_type, origin_url, **kwargs): | ||||
"""Return special dict format for the tasks list | """Return special dict format for the tasks list | ||||
Args: | Args: | ||||
origin_type (string) | origin_type (string) | ||||
origin_url (string) | origin_url (string) | ||||
Returns: | Returns: | ||||
the same information in a different form | the same information in a different form | ||||
""" | """ | ||||
_type = 'origin-update-%s' % origin_type | _type = 'load-%s' % origin_type | ||||
_policy = 'recurring' | _policy = 'recurring' | ||||
return utils.create_task_dict(_type, _policy, origin_url) | return utils.create_task_dict(_type, _policy, origin_url) | ||||
def string_pattern_check(self, a, b, c=None): | def string_pattern_check(self, a, b, c=None): | ||||
"""When comparing indexable types in is_within_bounds, complex strings | """When comparing indexable types in is_within_bounds, complex strings | ||||
may not be allowed to differ in basic structure. If they do, it | may not be allowed to differ in basic structure. If they do, it | ||||
could be a sign of not understanding the data well. For instance, | could be a sign of not understanding the data well. For instance, | ||||
an ISO 8601 time string cannot be compared against its urlencoded | an ISO 8601 time string cannot be compared against its urlencoded | ||||
▲ Show 20 Lines • Show All 127 Lines • Show Last 20 Lines |