def __init__(self): super().__init__() self.tearDown() # removes it if it existed out, err = self.call("-C", TREE_NAME, "--import", example) db = open_database(TREE_NAME, force_unlock=True) db.Person.filter(lambda person: person.gramps_id == "I0000").tag("Cool") db.close()
def __init__(self): super().__init__() self.tearDown() # removes it if it existed out, err = self.call("-C", TREE_NAME, "--import", example) db = open_database(TREE_NAME, force_unlock=True) db.Person.filter(lambda person: person.gramps_id == "I0000").tag( "Cool") db.close()
def __init__(self): self.gramps = Gramps() self.call("--config=behavior.database-backend:" + self.backend, "-C", self.NAME, "--import", example) self.db = open_database(self.NAME, force_unlock=True)
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)