def call(*args): """ Call Gramps to perform the action with out and err captured """ print("call:", args) gramps = Gramps(user=User()) out, err = gramps.run(*args) print("out:", out, "err:", err) return out, err
def call(*args): """ Call Gramps to perform the action with out and err captured """ if __debug__: print("call: %s", args) gramps = Gramps(user=User(auto_accept=True, quiet=True)) # gramps = Gramps(user=User(auto_accept=True)) out, err = gramps.run(*args) # print("out:", out, "err:", err) return out, err
def __init__(self): self.gramps = Gramps() self.call("--config=database.backend:" + self.backend, "-C", self.NAME, "--import", example) self.db = open_database(self.NAME, force_unlock=True)
def setUp(self): self.gramps = Gramps() self.tearDown()
def call(self, *args): print("call:", args) self.gramps = Gramps() out, err = self.gramps.run(*args) print("out:", out, "err:", err) return out, err
def call(cls, *args): print("call:", args) gramps = Gramps() out, err = gramps.run(*args) print("out:", out, "err:", err) return out, err
def call(self, *args): #print("call:", args) self.gramps = Gramps(user=User()) out, err = self.gramps.run(*args) #print("out:", out, "err:", err) return out, err
def call(cls, *args): #print("call:", args) gramps = Gramps(user=User()) out, err = gramps.run(*args) #print("out:", out, "err:", err) return out, err