

@register.tag(name='box_list')
def box_list(parser, token):
    bits = token.split_contents()
    object_name = bits[1]
    queryset = bits[2][1:(- 1)]
    if (len(bits) > 3):
        params = bits[3][1:(- 1)]
    else:
        params = ''
    m = __import__('intranet.org.models', '', '', object_name)
    object = getattr(m, object_name)
    return BoxListNode(object, queryset, params)

dataset/ETHPy150Open kiberpipa/Intranet/intranet/org/templatetags/box.py box_list/original