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

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

src/g/r/gramps-3.4.2/src/plugins/export/ExportGedcom.py   Gramps(Download)
 
        self.__writeln(1, 'NAME', gedcom_name)
        if int(name.get_type()) == gen.lib.NameType.BIRTH:
            pass
        elif int(name.get_type()) == gen.lib.NameType.MARRIED:

src/g/r/gramps-3.4.2/src/plugins/lib/libgedcom.py   Gramps(Download)
 
        if state.name_cnt == 0:
            name.set_type(gen.lib.NameType.BIRTH)
            state.person.set_primary_name(name)
        else:

src/g/r/gramps-3.4.2/src/plugins/import/ImportGeneWeb.py   Gramps(Download)
        person = self.get_or_create_person(firstname,surname)
        name = gen.lib.Name()
        name.set_type( gen.lib.NameType(gen.lib.NameType.BIRTH))
        name.set_first_name(firstname)
        surname_obj = name.get_primary_surname()
        if public_name:
            name = person.get_primary_name()
            name.set_type(gen.lib.NameType(gen.lib.NameType.BIRTH))
            person.add_alternate_name(name)
            name = gen.lib.Name()

src/g/r/gramps-3.4.2/src/plugins/import/ImportXml.py   Gramps(Download)
            else:
                if self.name.get_type() == "":
                    self.name.set_type(gen.lib.NameType.BIRTH)
 
            #same logic as bsddb upgrade for xml < 1.4.0 which will 

src/g/r/gramps-3.4.2/src/plugins/tool/Verify.py   Gramps(Download)
            fname = father.get_primary_name()
            # Only compare birth names (not married names).
            if mname.get_type() == gen.lib.NameType.BIRTH and \
               fname.get_type() == gen.lib.NameType.BIRTH:
                # Empty names don't count.

src/g/r/gramps-3.4.2/src/plugins/import/ImportProGen.py   Gramps(Download)
 
                name = gen.lib.Name()
                name.set_type(gen.lib.NameType.BIRTH)
                sname = gen.lib.Surname()
                sname.set_surname(surname)

src/g/r/gramps-3.4.2/src/plugins/import/ImportVCard.py   Gramps(Download)
 
        name = gen.lib.Name()
        name.set_type(gen.lib.NameType(gen.lib.NameType.BIRTH))
 
        if data_fields[0].strip():

src/g/r/gramps-3.4.2/src/plugins/import/ImportCsv.py   Gramps(Download)
            person = self.create_person()
            name = gen.lib.Name()
            name.set_type(gen.lib.NameType(gen.lib.NameType.BIRTH))
            name.set_first_name(firstname)
            surname_obj = gen.lib.Surname()