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/lib/libgedcom.py   Gramps(Download)
            state.name.set_type(gen.lib.NameType.AKA)
        elif line.data.upper() in ("_MAR", "_MARN", "_MARNM", "MARRIED"):
            state.name.set_type(gen.lib.NameType.MARRIED)
        else:
            state.name.set_type((gen.lib.NameType.CUSTOM, line.data))
            surn.set_primary()
            name.set_surname_list([surn])
            name.set_type(gen.lib.NameType.MARRIED)
            state.person.add_alternate_name(name)
        elif len(data) > 1:
            name = self.__parse_name_personal(text)
            name.set_type(gen.lib.NameType.MARRIED)

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

src/g/r/gramps-3.4.2/src/plugins/webreport/WebCal.py   Gramps(Download)
        names = [primary_name] + person.get_alternate_names()
        for name in names:
            if int(name.get_type()) == gen.lib.NameType.MARRIED:
                married_name = name
                break

src/g/r/gramps-3.4.2/src/plugins/webreport/NarrativeWeb.py   Gramps(Download)
        names = [primary_name] + person.get_alternate_names()
        for name in names:
            if int(name.get_type()) == gen.lib.NameType.MARRIED:
                married_name = name
                break # use first

src/g/r/gramps-3.4.2/src/plugins/textreport/BirthdayReport.py   Gramps(Download)
        names = [primary_name] + person.get_alternate_names()
        for name in names:
            if int(name.get_type()) == NameType.MARRIED:
                married_name = name
                break # use first

src/g/r/gramps-3.4.2/src/plugins/drawreport/Calendar.py   Gramps(Download)
        names = [primary_name] + person.get_alternate_names()
        for name in names:
            if int(name.get_type()) == gen.lib.NameType.MARRIED:
                married_name = name
                break # use first