Exemplo n.º 1
0
def fpcommand_detail(request, uuid):
    fpcommand = get_object_or_404(fprmodels.FPCommand, uuid=uuid)
    usage = fpcommand.command_usage
    utils.warn_if_viewing_disabled_revision(request, fpcommand)
    return render(request, 'fpr/fpcommand/detail.html', context(locals()))
Exemplo n.º 2
0
def idcommand_detail(request, uuid):
    idcommand = get_object_or_404(fprmodels.IDCommand, uuid=uuid)
    utils.warn_if_viewing_disabled_revision(request, idcommand)
    return render(request, 'fpr/idcommand/detail.html', context(locals()))
Exemplo n.º 3
0
def formatversion_detail(request, format_slug, slug=None):
    format = get_object_or_404(fprmodels.Format, slug=format_slug)
    version = get_object_or_404(fprmodels.FormatVersion, slug=slug)
    utils.warn_if_viewing_disabled_revision(request, version)
    return render(request, 'fpr/format/version/detail.html', context(locals()))
Exemplo n.º 4
0
def idrule_detail(request, uuid=None):
    idrule = get_object_or_404(fprmodels.IDRule, uuid=uuid)
    utils.warn_if_viewing_disabled_revision(request, idrule)
    return render(request, 'fpr/idrule/detail.html', context(locals()))
Exemplo n.º 5
0
def fprule_detail(request, uuid):
    fprule = get_object_or_404(fprmodels.FPRule, uuid=uuid)
    usage = fprule.command.command_usage
    utils.warn_if_viewing_disabled_revision(request, fprule)
    return render(request, "fpr/fprule/detail.html", context(locals()))