@register.simple_tag
def get_all_containerbox(channel_long_slug=None, template_name=None):

    cachekey = "get_all_containerbox-{0}-{1}".format(
        channel_long_slug,
        template_name)

    render = cache.get(cachekey)
    if render:
        return render

    filters = {}
    filters['date_available__lte'] = timezone.now()
    filters['published'] = True
    filters['site'] = settings.SITE_ID
    if settings.OPPS_CONTAINERS_SITE_ID:
        filters['site'] = settings.OPPS_CONTAINERS_SITE_ID

    boxes = ContainerBox.objects.filter(**filters)

    if channel_long_slug:
        boxes = boxes.filter(channel_long_slug=channel_long_slug)

    t = template.loader.get_template('articles/articlebox_list.html')
    if template_name:
        t = template.loader.get_template(template_name)

    render = t.render(template.Context({'articleboxes': boxes}))
    cache.set(cachekey, render, settings.OPPS_CACHE_EXPIRE)

    return render
Lazily return an internal registry key handle according to the instance's
dataset/ETHPy150Open opps/opps/opps/containers/templatetags/container_tags.py/get_all_containerbox--crossover with--dataset/ETHPy150Open tjguk/winsys/winsys/registry.py/Registry.pyobject