CPI Ordering System (the old version)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
''' custom jinja2 tests and filters ''' |
|
|
|
def are_extras_active(context, extras): |
|
''' checks if the filters are active in a PaginationResource ''' |
|
if extras is None: |
|
return True |
|
return all(context.filters.get(k) == v for k, v in extras.items())
|
|
|