def make_directory_pathlinks(request, project_url, url, links):
    if url != project_url:
        links.append({'href': dispatch.show_directory(request, url),
                      'text': url_manip.basename(url)})
        return make_directory_pathlinks(request, project_url, url_manip.parent(url), links)
    else:
        return list(reversed(links))
Exemplo n.º 2
0
def get_store(request):
    basename = url_manip.basename(request.path_info)
    if basename == 'translate.html':
        if 'store' in request.POST:
            return request.POST['store']
        else:
            return request.GET.get('store', '')

    else:
        return request.path_info