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)
            if Gb == 0 :
                rel_str = 'tá istá osoba'
            elif gender_b == gen.lib.Person.MALE and Gb < len(_son_level):
                # spouse of daughter
                if inlaw and Gb == 1 and not step:
                    rel_str = self.get_daughter(Gb)
            # don't display inlaw
            elif Gb < len(_level_name) and gender_b == gen.lib.Person.MALE:
                rel_str = "vzdialený potomok (%d generácia)" % (
                               Gb+1)
        elif Gb == 0:
            # b is parents/grand parent of a
            if gender_b == gen.lib.Person.MALE and Ga < len(_father_level):
                # other spouse of father (new parent)
                if Ga == 1 and inlaw and self.STEP_SIB:
                else:
                    rel_str = self.get_mother(Ga, inlaw)
            elif Ga < len(_level_name) and gender_b == gen.lib.Person.MALE:
                rel_str = "vzdialený predok%s (%d generácia)" % (
                               inlaw, Ga+1)
        elif Gb == 1:
            # b is sibling/aunt/uncle of a
            if gender_b == gen.lib.Person.MALE and Ga < len(_brother_level):
                rel_str = self.get_uncle(Ga, inlaw)
            elif gender_b == gen.lib.Person.FEMALE and Ga < len(_sister_level):

src/g/r/gramps-3.4.2/src/plugins/rel/rel_fr.py   Gramps(Download)
            if Gb == 0:
                rel_str = u"le même individu"
            elif gender_b == gen.lib.Person.MALE and Gb < len(_SON_LEVEL):
 
                # spouse of daughter
                else:
                    rel_str = get_daughter(Gb)
            elif Gb < len(_LEVEL_NAME) and gender_b == gen.lib.Person.MALE:
 
            # don't display inlaw
            # b is parents/grand parent of a
 
            if gender_b == gen.lib.Person.MALE and Ga < len(_FATHER_LEVEL):
 
                # other spouse of father (new parent)
                else:
                    rel_str = get_mother(Ga, inlaw)
            elif Ga < len(_LEVEL_NAME) and gender_b == gen.lib.Person.MALE:
                rel_str = u"l'ascendant lointain%s (%dème génération)" % \
                    (inlaw, Ga + 1)
            # b is sibling/aunt/uncle of a
 
            if gender_b == gen.lib.Person.MALE and Ga < len(_BROTHER_LEVEL):
                rel_str = get_uncle(Ga, inlaw)
            elif gender_b == gen.lib.Person.FEMALE and Ga < len(_SISTER_LEVEL):

src/g/r/gramps-3.4.2/src/plugins/rel/rel_ca.py   Gramps(Download)
            if Gb == 0:
                rel_str = u"la mateixa persona"
            elif gender_b == gen.lib.Person.MALE:
 
                # spouse of daughter
            # b is parents/grand parent of a
 
            if gender_b == gen.lib.Person.MALE:
 
                # father of spouse (family of spouse)
 
            if inlaw and Ga == 1 and not step:
                if gender_b == gen.lib.Person.MALE:
                    rel_str = "el cunyat"
                elif gender_b == gen.lib.Person.FEMALE:
                    rel_str = "la cunyada"
                else:			# gender_b == gen.lib.Person.UNKNOWN:
                    rel_str = "un cunyat"
 
            elif gender_b == gen.lib.Person.MALE :
            # b is niece/nephew of a
 
            if gender_b == gen.lib.Person.MALE:
                rel_str = _get_nephew(Gb - 1, inlaw, step)
            elif gender_b == gen.lib.Person.FEMALE:

src/g/r/gramps-3.4.2/src/plugins/rel/rel_it.py   Gramps(Download)
    def __gen_suffix(self, gender):
        if gender == gen.lib.Person.MALE:
            return 'o'
        return 'a'
 
            if secondRel == 0:
                return ('', common)
            elif other_person.get_gender() == gen.lib.Person.MALE:
                return (self.get_father(secondRel), common)
            else:
                return (self.get_mother(secondRel), common)
        elif secondRel == 0:
            if other_person.get_gender() == gen.lib.Person.MALE:
                return (self.get_daughter(firstRel), common)
        elif firstRel == 1:
            if other_person.get_gender() == gen.lib.Person.MALE:
                return (self.get_uncle(secondRel), common)
            else:
                return (self.get_aunt(secondRel), common)
        elif secondRel == 1:
            if other_person.get_gender() == gen.lib.Person.MALE:

src/g/r/gramps-3.4.2/src/plugins/rel/rel_pl.py   Gramps(Download)
            # b is son/descendant of a
 
            if gender_b == gen.lib.Person.MALE:
                if inlaw and Gb == 1 and not step:
                    rel_str = "zięć"
            # b is parent/grand parent of a
 
            if gender_b == gen.lib.Person.MALE:
                if inlaw and Gb == 1 and not step:
                    # TODO: znaleźć odpowiedniki w zależności czy to syn/córka
        elif Ga == Gb == 1:
            # rodzeństwo
            if gender_b == gen.lib.Person.MALE:                
                if inlaw and not step:
                    rel_str = "brat przyrodni"
 
                # brat ojca, czyli stryj
                if (gender_b == gen.lib.Person.MALE) \
                    & (reltocommon_a[0] == self.REL_FATHER):
                    rel_str = "stryj"
 
                # brat matki, czyli wuj/wujek 
                elif (gender_b == gen.lib.Person.MALE) \
                    & (reltocommon_a[0] == self.REL_MOTHER):
                    rel_str = "wuj (wujek)"

src/g/r/gramps-3.4.2/src/plugins/rel/rel_nl.py   Gramps(Download)
                rel_str = 'zelfde persoon'
            elif Ga == 1 and inlaw and not step:
                if gender_b == gen.lib.Person.MALE:
                    rel_str = 'schoonvader'
                elif gender_b == gen.lib.Person.FEMALE:
                    rel_str = 'schoonmoeder'
                else:
                    rel_str = 'schoonouder'
            elif gender_b == gen.lib.Person.MALE:
            #a is descendant
            if Gb == 1 and inlaw and not step:
                if gender_b == gen.lib.Person.MALE:
                    rel_str = 'schoonzoon'
                elif gender_b == gen.lib.Person.FEMALE:
            elif Gb == 1 and inlaw and step:
                #inlaw stepchild
                if gender_b == gen.lib.Person.MALE:
                    rel_str = 'aangetrouwde stiefzoon'
                elif gender_b == gen.lib.Person.FEMALE:
                    rel_str = 'aangetrouwde stiefdochter'
                else:
                    rel_str = 'aangetrouwde stiefzoon of dochter'
            elif gender_b == gen.lib.Person.MALE:

src/g/r/gramps-3.4.2/src/plugins/rel/rel_hu.py   Gramps(Download)
        if in_law_a or in_law_a:
            if firstRel == 0 and secondRel == 0:
                if other_person == gen.lib.Person.MALE:
                    return ("apósa","")
                elif other_person == gen.lib.Person.FEMALE:
 
            elif secondRel == 0:
                if orig_person == gen.lib.Person.MALE:
                    return ("veje","")
                elif orig_person == gen.lib.Person.FEMALE:
 
            elif firstRel == 1:
                if other_person == gen.lib.Person.MALE:
                    return ("sógora","")
                elif other_person == gen.lib.Person.FEMALE:
            if secondRel == 0:
                return ('', common)
            elif other_person == gen.lib.Person.MALE:
                return (self.get_father(secondRel), common)
            else:
                return (self.get_mother(secondRel), common)
 
        elif secondRel == 0:
            if other_person == gen.lib.Person.MALE:

src/g/r/gramps-3.4.2/src/gui/editors/editfamily.py   Gramps(Download)
    def match(self, handle, db):
        value = self.db.get_raw_person_data(handle)
        return value[2] == gen.lib.Person.MALE
 
class FastFemaleFilter(object):
    def add_father_clicked(self, obj):
        person = gen.lib.Person()
        person.set_gender(gen.lib.Person.MALE)
        autoname = config.get('behavior.surname-guessing')
        #_("Father's surname"), 

src/g/r/gramps-3.4.2/src/plugins/rel/rel_sv.py   Gramps(Download)
            else:
                result.append('mor')
        if person_gender == gen.lib.Person.MALE:
            result[-1] = 'far'
        if person_gender == gen.lib.Person.FEMALE:
            else:
                result.append('dotter')
        if person_gender == gen.lib.Person.MALE:
            result.append('son')
        elif person_gender == gen.lib.Person.FEMALE:
            else:
                result.append('dotter')
        if person_gender == gen.lib.Person.MALE:
            result.append('son')
        elif person_gender == gen.lib.Person.FEMALE:
            typestr = self.STEP
 
        if gender_b == gen.lib.Person.MALE:
            rel_str = "bror"
        elif gender_b == gen.lib.Person.FEMALE:
            # handles brother and unknown gender as second person,
            # shows up in "testing unknown cousins same generation"                
            if gender_b == gen.lib.Person.MALE or gender_b == gen.lib.Person.UNKNOWN:
                rel_str = self._get_ancestors_brother(reltocommon_a, gender_b, step, inlaw)
            elif gender_b == gen.lib.Person.FEMALE:

src/g/r/gramps-3.4.2/src/plugins/rel/rel_sl.py   Gramps(Download)
    if Gb == 0:
      if Ga == 0: rel_str = "ista oseba"
      elif gender_b == gen.lib.Person.MALE:
        rel_str = (self.getFather(Ga))
      elif gender_b == gen.lib.Person.FEMALE: 
        rel_str = (self.getMother(Ga))
      else:
        rel_str = (self.getAncestor(Ga))
    elif Ga == 0:
      if gender_b == gen.lib.Person.MALE:
        rel_str = (self.getDescendant(Gb))
    elif Ga == Gb:
      if gender_b == gen.lib.Person.MALE:
        rel_str = (self.getMaleCousin(Gb))
      elif gender_b == gen.lib.Person.FEMALE:
    # ie. NORM_SIB or one of HALF_SIBs
      if not inlaw:
        if gender == gen.lib.Person.MALE:
          rel_str = u"%sbrat" % (prefix)
        elif gender == gen.lib.Person.FEMALE:
          rel_str = u"%ssestra" % (prefix)
        else:
          rel_str = u"%sbrat ali %ssestra" % (prefix, prefix)
      else:
        if gender == gen.lib.Person.MALE:

  1 | 2 | 3 | 4 | 5  Next