def category_categories(request, slug, start=0, template_name="lfs/catalog/categories/category/default.html"):
    cache_key = "%s-category-categories-2-%s" % (settings.CACHE_MIDDLEWARE_KEY_PREFIX, slug)

    result = cache.get(cache_key)
    if result is not None:
        return result

    category = lfs_get_object_or_404(Category, slug=slug)

    format_info = category.get_format_info()
    amount_of_cols = format_info["category_cols"]

    categories = []
    row = []
    for i, children in enumerate(category.get_children()):
        row.append(children)
        if (i + 1) % amount_of_cols == 0:
            categories.append(row)
            row = []

    if len(row) > 0:
        categories.append(row)
    render_template = category.get_template_name()

    if render_template != None:
        template_name = render_template

    result_html = render_to_string(template_name, RequestContext(request, {
        "category": category,
        "categories": categories,
    }))

    result = {'pagination_data': {'current_page': 1, 'total_pages': 1, 'getparam': 'start'}, 'html': result_html}

    cache.set(cache_key, result)
    return result
Redirect to the latest report of a given node.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/views.py/category_categories--crossover with--dataset/ETHPy150Open voxpupuli/puppetboard/puppetboard/app.py/report_latest