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

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

src/g/r/gramps-3.4.2/src/plugins/import/ImportXml.py   Gramps(Download)
    def start_patronymic(self, attrs):
        """ This is the element in version < 1.4.0 to do the patronymic"""
        self.surnamepat = gen.lib.Surname()
        self.surnamepat.set_origintype(gen.lib.NameOriginType(
                                       gen.lib.NameOriginType.PATRONYMIC))

src/g/r/gramps-3.4.2/src/gui/configure.py   Gramps(Download)
import Utils
import gen.lib
from gen.lib import Name, Surname, NameOriginType
import ManagedWindow
from gui.widgets import MarkupLabel, BasicLabel
        examplesurnamepat.set_surname('Wilson')
        examplesurnamepat.set_origintype(
                                    NameOriginType(NameOriginType.PATRONYMIC))
        self.examplename.add_surname(examplesurnamepat)
        self.examplename.set_primary_surname(0)

src/g/r/gramps-3.4.2/src/gen/db/read.py   Gramps(Download)
#
#-------------------------------------------------------------------------
from gen.lib import (MediaObject, Person, Family, Source, Citation, Event,
                     Place, Repository, Note, Tag, GenderStats, Researcher, 
                     NameOriginType)

src/g/r/gramps-3.4.2/src/gen/proxy/living.py   Gramps(Download)
#-------------------------------------------------------------------------
from proxybase import ProxyDbBase
from gen.lib import Date, Person, Name, Surname, NameOriginType
from Utils import probably_alive
import config

src/g/r/gramps-3.4.2/src/gui/editors/displaytabs/surnametab.py   Gramps(Download)
from DdTargets import DdTargets
import AutoComp
from gen.lib import Surname, NameOriginType
 
#-------------------------------------------------------------------------
        renderer.set_property('ellipsize', pango.ELLIPSIZE_END)
        # set up the comboentry editable
        no = NameOriginType()
        self.cmborig = gtk.ListStore(gobject.TYPE_INT, gobject.TYPE_STRING)
        self.cmborigmap = no.get_map().copy()
        if len(self.obj.get_surname_list()) == 0:
            prim = True
        node = self.model.append(row=['', '', '', NameOriginType(), prim, 
                                      Surname()])
        self.selection.select_iter(node)

src/g/r/gramps-3.4.2/src/gen/display/name.py   Gramps(Download)
#
#-------------------------------------------------------------------------
from gen.lib import Name, NameOriginType
 
try:

src/g/r/gramps-3.4.2/src/Filters/Rules/Person/_HasNameOriginType.py   Gramps(Download)
#-------------------------------------------------------------------------
from Filters.Rules._Rule import Rule
from gen.lib import NameOriginType
 
#-------------------------------------------------------------------------
        for name in [person.get_primary_name()] + person.get_alternate_names():
            for surname in name.get_surname_list():
                specified_type = NameOriginType()
                specified_type.set_from_xml_str(self.list[0])
                if surname.get_origintype() == specified_type:

src/g/r/gramps-3.4.2/src/plugins/tool/PatchNames.py   Gramps(Download)
                    origs = []
                    for ind in range(len(prefixes)):
                        origs.append(gen.lib.NameOriginType())
                    origs[0] = old_orig[0]
                    compoundval = (surnames, prefixes, ['']*len(prefixes),
                        con = ''
                        prim = False
                        orig = gen.lib.NameOriginType()
                ind += 1
            if found:

src/g/r/gramps-3.4.2/src/Filters/Rules/Person/_HasNameOf.py   Gramps(Download)
#-------------------------------------------------------------------------
from Filters.Rules._Rule import Rule
from gen.lib import NameOriginType
 
#-------------------------------------------------------------------------