* various: Change Person.male, Person.female, and Person.unkwown
to Person.MALE, Person.FEMALE and Person.UNKNOWN * gramps.spec.in: bring up to date, support Fedora Core and Mandrake * src/plugins/NavWebPage.py: Start of the Narrative Web Page plugin svn: r4008
This commit is contained in:
@ -330,7 +330,7 @@ class IsFemale(Rule):
|
||||
return _('Matches all females')
|
||||
|
||||
def apply(self,db,p_id):
|
||||
return db.get_person_from_handle(p_id).get_gender() == RelLib.Person.female
|
||||
return db.get_person_from_handle(p_id).get_gender() == RelLib.Person.FEMALE
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -966,7 +966,7 @@ class IsMale(Rule):
|
||||
return _('Matches all males')
|
||||
|
||||
def apply(self,db,p_id):
|
||||
return db.get_person_from_handle(p_id).get_gender() == RelLib.Person.male
|
||||
return db.get_person_from_handle(p_id).get_gender() == RelLib.Person.MALE
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
|
Reference in New Issue
Block a user