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/rel/rel_sk.py   Gramps(Download)
                    rel_str = "vzdialená teta" + bygen % (
                                   Ga+1)
                elif gender_b == gen.lib.Person.UNKNOWN:
                    rel_str = self.get_sibling_unknown(Ga, inlaw)
                else:
                    rel_str = "vzdialená neter%s (%d generácia)" %  (
                                   inlaw, Gb)
                elif gender_b == gen.lib.Person.UNKNOWN:
                    rel_str = self.get_sibling_unknown(Ga, inlaw)
                else:
                rel_str = self.get_cousine(Ga-1, 0, dir = '', 
                                     inlaw=inlaw)
            elif gender_b == gen.lib.Person.UNKNOWN:
                rel_str = self.get_sibling_unknown(Ga-1, inlaw)
            else:
                    desc = " (sesternica niektorého z rodičov)"
                    rel_str = "teta z druhého kolena" + desc
                elif gender_b == gen.lib.Person.UNKNOWN: 
                    return self.get_sibling_unknown(Ga, inlaw)
                else:
                elif gender_b == gen.lib.Person.FEMALE:
                    rel_str = "teta" + can + civ
                elif gender_b == gen.lib.Person.UNKNOWN:
                    rel_str = self.get_sibling_unknown(Ga, inlaw)
                else:

src/g/r/gramps-3.4.2/src/plugins/rel/rel_fr.py   Gramps(Download)
                elif gender_b == gen.lib.Person.FEMALE:
                    rel_str = u"la tante lointaine" + bygen % (Ga + 1)
                elif gender_b == gen.lib.Person.UNKNOWN:
                    rel_str = get_sibling_unknown(inlaw)
                else:
                    rel_str = u"la nièce lointaine%s (%dème génération)" % \
                        (inlaw, Gb)
                elif gender_b == gen.lib.Person.UNKNOWN:
                    rel_str = get_sibling_unknown(inlaw)
                else:
            elif gender_b == gen.lib.Person.FEMALE:
                rel_str = get_cousine(Ga - 1, 0, inlaw=inlaw)
            elif gender_b == gen.lib.Person.UNKNOWN:
                rel_str = get_sibling_unknown(inlaw)
            else:
                    desc = u" (cousine germaine d'un parent)"
                    rel_str = u"la tante à la mode de Bretagne" + desc
                elif gender_b == gen.lib.Person.UNKNOWN:
                    return get_sibling_unknown(Ga, inlaw)
                else:
                elif gender_b == gen.lib.Person.FEMALE:
                    rel_str = u"la tante" + can + civ
                elif gender_b == gen.lib.Person.UNKNOWN:
                    rel_str = get_sibling_unknown(Ga, inlaw)
                else:

src/g/r/gramps-3.4.2/src/plugins/rel/rel_sv.py   Gramps(Download)
        if person_gender == gen.lib.Person.FEMALE:
            result[-1] = 'mor'
        if person_gender == gen.lib.Person.UNKNOWN:
            result[-1] = u'förälder'
        if step != '' and len(result)==1:
            result[-1] = u'svär' + result[-1]
        if len(result)>1 and len(result) % 2 == 0 and \
            (person_gender == gen.lib.Person.UNKNOWN or inlaw != ''):
            # Correct string "-2" with genitive s and add a space to get
            # correct Swedish, if even number in result
            result.append('dotter')
        else:
            if person_gender == gen.lib.Person.UNKNOWN and inlaw == '':
                result.append('barn')
            if person_gender == gen.lib.Person.UNKNOWN and inlaw != '':
            result[-1] = u'svär' + result[-1]
        if len(result)>1 and len(result) % 2 == 0 and \
            (person_gender == gen.lib.Person.UNKNOWN or inlaw != ''):
            # Correct string "-2" with genitive s and add a space to get
            # correct Swedish, if even number in result

src/g/r/gramps-3.4.2/src/plugins/rel/rel_ca.py   Gramps(Download)
            elif gender_b == gen.lib.Person.FEMALE:
                rel_str = _get_niece(Gb - 1, inlaw, step)
            elif gender_b == gen.lib.Person.UNKNOWN:
                rel_str = _get_nephew_unk(Gb - 1, inlaw, step)
            else:
            elif gender_b == gen.lib.Person.FEMALE:
                rel_str = _get_cosina(Ga - 1, inlaw, step)
            elif gender_b == gen.lib.Person.UNKNOWN:
                rel_str = _get_cosi_unknown(Ga-1, inlaw, step)
            else:

src/g/r/gramps-3.4.2/src/plugins/import/ImportCsv.py   Gramps(Download)
        if husband:
            # this is just a guess, if unknown
            if husband.get_gender() == gen.lib.Person.UNKNOWN:
                husband.set_gender(gen.lib.Person.MALE)
                self.db.commit_person(husband, self.trans)
        if wife:
            # this is just a guess, if unknown
            if wife.get_gender() == gen.lib.Person.UNKNOWN:
                gender = gen.lib.Person.FEMALE
            else:
                gender = gen.lib.Person.UNKNOWN
            child.set_gender(gender)
        if source:
            if person_ref.startswith("[") and person_ref.endswith("]"):
                person.gramps_id = self.db.id2user_format(person_ref[1:-1])
        if (person.get_gender() == gen.lib.Person.UNKNOWN and
                gender is not None):
            gender = gender.lower()
                gender = gen.lib.Person.FEMALE
            else:
                gender = gen.lib.Person.UNKNOWN
            person.set_gender(gender)
        #########################################################

src/g/r/gramps-3.4.2/src/plugins/import/ImportGeneWeb.py   Gramps(Download)
    def read_relationship_person(self,line,fields):
        LOG.debug("\Relationships:")
        (idx,person) = self.parse_person(fields,1,gen.lib.Person.UNKNOWN,None)
        if person:
            self.current_relationship_person_handle = person.get_handle()
                fields = matches.groups()[1].split(" ")
                if fields:
                    (idx,asso_p) = self.parse_person(fields,0,gen.lib.Person.UNKNOWN,None)
                    pref = gen.lib.PersonRef()
                    pref.set_relation(matches.groups()[0])
                    (idx,child) = self.parse_person(fields,2,gen.lib.Person.FEMALE,father_surname)
                else:
                    (idx,child) = self.parse_person(fields,1,gen.lib.Person.UNKNOWN,father_surname)
 
                if child:
        surname_obj.set_surname(surname)
        person.set_primary_name(name)
        if person.get_gender() == gen.lib.Person.UNKNOWN and gender is not None:
            person.set_gender(gender)
        self.db.commit_person(person,self.trans)

src/g/r/gramps-3.4.2/src/plugins/import/ImportProGen.py   Gramps(Download)
                    gender = gen.lib.Person.FEMALE
                else:
                    gender = gen.lib.Person.UNKNOWN
 
                person = self.__find_or_create_person("I%d" % pers_id)

src/g/r/gramps-3.4.2/src/gui/editors/editperson.py   Gramps(Download)
        self.should_guess_gender = (not self.obj.get_gramps_id() and
                                    self.obj.get_gender () ==
                                    gen.lib.Person.UNKNOWN)
 
        self.top = Glade()
            (_('female'), gen.lib.Person.FEMALE),
            (_('male'), gen.lib.Person.MALE),
            (_('unknown'), gen.lib.Person.UNKNOWN)
            ),
            self.db.readonly)
    def _check_for_unknown_gender(self):
        if self.obj.get_gender() == gen.lib.Person.UNKNOWN:
            d = GenderDialog(self.window)
            gender = d.run()
            d.destroy()
                            temp_family.set_father_handle(None)
                            temp_family.set_mother_handle(self.obj)
            elif unknown and original.get_gender() != gen.lib.Person.UNKNOWN:
                for tmp_handle in self.obj.get_family_handle_list():
                    temp_family = self.db.get_family_from_handle(tmp_handle)

src/g/r/gramps-3.4.2/src/plugins/drawreport/StatisticsChart.py   Gramps(Download)
    ]
    genders = [
        (Person.UNKNOWN, "Both", _("Both")),
        (Person.MALE, "Men", _("Men")),
        (Person.FEMALE, "Women", _("Women"))
            person = db.get_person_from_handle(person_handle)
            # check whether person has suitable gender
            if person.gender != genders and genders != Person.UNKNOWN:
                continue
 
 
        gender = EnumeratedListOption(_('Genders included'),
                                      Person.UNKNOWN )
        for item_idx in range(len(_options.genders)):
            item = _options.genders[item_idx]

src/g/r/gramps-3.4.2/src/plugins/view/relview.py   Gramps(Download)
    gen.lib.Person.MALE    : u'\u2642', 
    gen.lib.Person.FEMALE  : u'\u2640', 
    gen.lib.Person.UNKNOWN : u'\u2650', 
    }
 

  1 | 2  Next