Ejemplo n.º 1
0
def statistics(request):
    blocks = []
    blocks.append(documents_statistics())
    blocks.append(ocr_statistics())

    return render_to_response('statistics.html', {
        'blocks': blocks,
        'title': _(u'Statistics')
    },
    context_instance=RequestContext(request))
Ejemplo n.º 2
0
def statistics(request):
    blocks = []
    blocks.append(documents_statistics())
    blocks.append(ocr_statistics())

    return render_to_response('statistics.html', {
        'blocks': blocks,
        'title': _(u'Statistics')
    },
                              context_instance=RequestContext(request))
Ejemplo n.º 3
0
Archivo: views.py Proyecto: x3n0/mayan
def statistics(request):
    if request.user.is_superuser or request.user.is_staff:
        blocks = []
        blocks.append(documents_statistics())
        blocks.append(ocr_statistics())

        return render_to_response('statistics.html', {
            'blocks': blocks,
            'title': _(u'Statistics')
        },
                                  context_instance=RequestContext(request))
    else:
        raise PermissionDenied
Ejemplo n.º 4
0
def statistics(request):
    if request.user.is_superuser or request.user.is_staff:
        blocks = []
        blocks.append(documents_statistics())
        blocks.append(ocr_statistics())

        return render_to_response('statistics.html', {
            'blocks': blocks,
            'title': _(u'Statistics')
        },
        context_instance=RequestContext(request))
    else:
        raise PermissionDenied