@register.tag(name="get_resource_calendars")
def get_resource_calendars(parser, token):
    bits = token.split_contents()
    if len(bits) not in [3,4]:
        raise TemplateSyntaxError('%r expects 3 or 4 arguments' % bits[0])
    if bits[-2] != 'as':
        raise TemplateSyntaxError(
            '%r expects "as" as the second argument' % bits[0])
    varname = bits[-1]
    if len(bits) == 4:
        perm = bits[1].split(',')
    else:
        perm = ['viewer']
    return resource_calendars(varname, perm)
List the collection.
dataset/ETHPy150Open zorna/zorna/zorna/calendars/templatetags/calendars_tags.py/get_resource_calendars--crossover with--dataset/ETHPy150Open openstack/python-solumclient/solumclient/openstack/common/apiclient/base.py/BaseManager._list