Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
 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)
Esempio n. 4
0
 def setUp(self):
     self.gramps = Gramps()
     self.tearDown()
Esempio n. 5
0
 def call(self, *args):
     print("call:", args)
     self.gramps = Gramps()
     out, err = self.gramps.run(*args)
     print("out:", out, "err:", err)
     return out, err
Esempio n. 6
0
 def call(cls, *args):
     print("call:", args)
     gramps = Gramps()
     out, err = gramps.run(*args)
     print("out:", out, "err:", err)
     return out, err
Esempio n. 7
0
 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
Esempio n. 8
0
 def call(cls, *args):
     #print("call:", args)
     gramps = Gramps(user=User())
     out, err = gramps.run(*args)
     #print("out:", out, "err:", err)
     return out, err