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/store/views.py   qualitio(Download)
def directory_details(request, directory_id, **kwargs):
    return direct_to_template(request, 'store/testcasedirectory_details.html',
                              {'directory': TestCaseDirectory.objects.get(pk=directory_id)})
 
 
@permission_required('USER')
@core.menu_view(TestCaseDirectory, "edit", role='USER')
def directory_edit(request, directory_id, **kwargs):
    directory = TestCaseDirectory.objects.get(pk=directory_id)
def directory_new(request, directory_id, **kwargs):
    directory = TestCaseDirectory.objects.get(pk=directory_id)
    testcasedirectory_form = TestCaseDirectoryForm(initial={'parent': directory})
    return direct_to_template(request, 'store/testcasedirectory_edit.html',
                              {'testcasedirectory_form': testcasedirectory_form})
def directory_valid(request, directory_id=0, **kwargs):
    if directory_id:
        testcase_directory = TestCaseDirectory.objects.get(pk=directory_id)
        testcase_directory_form = TestCaseDirectoryForm(request.POST, instance=testcase_directory)
    else:
def testcase_new(request, directory_id, **kwargs):
    directory = TestCaseDirectory.objects.get(pk=directory_id)
    testcase_form = TestCaseForm(initial={'parent': directory})
    testcasesteps_form = TestCaseStepFormSet()
    return direct_to_template(request, 'store/testcase_edit.html',