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

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

src/g/r/gramps-3.4.2/src/plugins/lib/libgedcom.py   Gramps(Download)
    def __init__(self, dbase, ifile, filename, callback, stage_one, 
                 default_source):
        UpdateCallback.__init__(self, callback)
 
        self.set_total(stage_one.get_line_count())

src/g/r/gramps-3.4.2/src/plugins/import/ImportXml.py   Gramps(Download)
        with DbTxn(_("Gramps XML import"), self.db, batch=True,
                   no_magic=no_magic) as self.trans:
            self.set_total(linecount)
 
            self.db.disable_signals()

src/g/r/gramps-3.4.2/src/plugins/export/ExportXml.py   Gramps(Download)
                      )
 
        self.set_total(total_steps)
 
        self.g.write('<?xml version="1.0" encoding="UTF-8"?>\n')