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

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

src/q/u/qualitio-HEAD/qualitio/execute/views.py   qualitio(Download)
        testrun_directory = testrun_directory_form.save()
 
        log = history.History(request.user, testrun_directory)
        log.add_form(testrun_directory_form, is_new=(directory_id == 0))
        log.save()
        testrun = testrun_form.save()
 
        log = history.History(request.user, testrun)
        log.add_form(testrun_form, is_new=(testrun_id == 0))
        log.save()
        testrun.update_passrate()
 
        log = history.History(request.user, testrun)
        log.add_form(testrun_form, is_new=(testrun_id == 0))
        log.add_objects(created=created_testcases, deleted=deleted_testcases)
def testrun_copy(request, testrun_id, **kwargs):
    testrun = TestRun.objects.get(pk=str(testrun_id))
    testrun_copy = testrun.copy()
 
    log = history.History(request.user, testrun_copy)
        testcaserun = testcaserun_status_form.save()
 
        log = history.History(request.user, testcaserun.parent)
        log.add_form(testcaserun_status_form, capture=["status"], prefix=True)
        log.save()

src/q/u/qualitio-HEAD/qualitio/store/views.py   qualitio(Download)
        testcase_directory = testcase_directory_form.save()
 
        log = history.History(request.user, testcase_directory)
        log.add_form(testcase_directory_form, is_new=(directory_id == 0))
        log.save()
        testcasesteps_form.save()
 
        log = history.History(request.user, testcase)
        log.add_form(testcase_form, is_new=(testcase_id == 0))
        log.add_formset(testcasesteps_form)
def testcase_copy(request, testcase_id, **kwargs):
    testcase = TestCase.objects.get(pk=str(testcase_id))
    testcase_copy = testcase.copy()
 
    log = history.History(request.user, testcase_copy)

src/q/u/qualitio-HEAD/qualitio/require/views.py   qualitio(Download)
        requirement = requirement_form.save()
 
        log = history.History(request.user, requirement)
        log.add_form(requirement_form, is_new=(requirement_id == 0))
        log.save()
    testcases.update(requirement=requirement)
 
    log = history.History(request.user, requirement)
    log.add_objects(created=testcases)
    message = log.save()
    testcases.update(requirement=None)
 
    log = history.History(request.user, requirement)
    log.add_objects(deleted=testcases)
    message = log.save()

src/q/u/qualitio-HEAD/qualitio/execute/actions.py   qualitio(Download)
                        bugs.append(testcaserun.bugs.get_or_create(**downloaded_bug)[0])
 
                log = history.History(self.request.user, testcaserun.parent)
                log.add_objects(created=bugs, prefix_object=testcaserun)
                log.save()
                    bugs.delete()
 
                    log = history.History(self.request.user, testcaserun.parent)
                    log.add_objects(deleted=deleted, prefix=True)
                    log.save()

src/q/u/qualitio-HEAD/qualitio/actions/base.py   qualitio(Download)
                    obj.save()
 
                    log = history.History(self.request.user, obj)
                    log.add_message(u"Changed parent")
                    log.save()