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)
        log = history.History(request.user, testrun_directory)
        log.add_form(testrun_directory_form, is_new=(directory_id == 0))
        log.save()
 
        return success(message='testrun directory saved',
        log = history.History(request.user, testrun)
        log.add_form(testrun_form, is_new=(testrun_id == 0))
        log.save()
 
        return success(message='Test run notes saved',
        log.add_form(testrun_form, is_new=(testrun_id == 0))
        log.add_objects(created=created_testcases, deleted=deleted_testcases)
        log.save()
 
        return success(message='Test run saved',
    log = history.History(request.user, testrun_copy)
    log.add_message("Cloned from %s: %s" % (testrun._meta.verbose_name.capitalize(), testrun.pk))
    log.save()
    return success(message='Copy created',
                   data={"parent_id": getattr(testrun_copy.parent, "id", 0),
        log = history.History(request.user, testcaserun.parent)
        log.add_form(testcaserun_status_form, capture=["status"], prefix=True)
        log.save()
 
        # TODO: move this to testrun? method. Chec also templatetags

src/q/u/qualitio-HEAD/qualitio/store/views.py   qualitio(Download)
        log = history.History(request.user, testcase_directory)
        log.add_form(testcase_directory_form, is_new=(directory_id == 0))
        log.save()
        return success(message='Directory saved',
                       data={"parent_id": getattr(testcase_directory.parent, "id", 0),
        log.add_form(testcase_form, is_new=(testcase_id == 0))
        log.add_formset(testcasesteps_form)
        log.save()
        return success(message='TestCase saved',
                       data={"parent_id": getattr(testcase.parent, "id", 0),
    log = history.History(request.user, testcase_copy)
    log.add_message("Cloned from %s: %s" % (testcase._meta.verbose_name.capitalize(), testcase.pk))
    log.save()
    return success(message='Copy created',
                   data={"parent_id": getattr(testcase_copy.parent, "id", 0),

src/q/u/qualitio-HEAD/qualitio/require/views.py   qualitio(Download)
        log = history.History(request.user, requirement)
        log.add_form(requirement_form, is_new=(requirement_id == 0))
        log.save()
        return success(message='Requirement saved',
                       data={"parent_id": getattr(requirement.parent,"id", 0),
    log = history.History(request.user, requirement)
    log.add_objects(created=testcases)
    message = log.save()
 
    return success(message=message)
    log = history.History(request.user, requirement)
    log.add_objects(deleted=testcases)
    message = log.save()
 
    return success(message=message)

src/q/u/qualitio-HEAD/qualitio/execute/actions.py   qualitio(Download)
                log = history.History(self.request.user, testcaserun.parent)
                log.add_objects(created=bugs, prefix_object=testcaserun)
                log.save()
 
        except Exception, error:
                    log = history.History(self.request.user, testcaserun.parent)
                    log.add_objects(deleted=deleted, prefix=True)
                    log.save()
 
        except Exception, error:

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