Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/q/u/qualitio-HEAD/qualitio/report/views.py   qualitio(Download)
def directory_details(request, directory_id, **kwargs):
    return direct_to_template(request, 'report/reportdirectory_details.html',
                              {'directory': ReportDirectory.objects.get(pk=directory_id)})
 
 
@permission_required('USER')
@core.menu_view(ReportDirectory, "edit", role='USER')
def directory_edit(request, directory_id, **kwargs):
    directory = ReportDirectory.objects.get(pk=directory_id)
def directory_new(request, directory_id, **kwargs):
    directory = ReportDirectory.objects.get(pk=directory_id)
    reportdirectory_form = ReportDirectoryForm(initial={'parent': directory})
 
    return direct_to_template(request, 'report/reportdirectory_edit.html',
def directory_valid(request, directory_id=0, **kwargs):
    # TODO: should we think about permissions for valid views?
    if directory_id:
        reportdirectory = ReportDirectory.objects.get(pk=directory_id)
        reportdirectory_form = ReportDirectoryForm(request.POST,
def report_new(request, directory_id, **kwargs):
    directory = ReportDirectory.objects.get(pk=directory_id)
    report_form = ReportForm(initial={'parent': directory})
    report_contextelement_formset = ContextElementFormset()
    return direct_to_template(request, 'report/report_edit.html',