Family context menu with quick reports

svn: r8897
This commit is contained in:
Benny Malengier
2007-08-30 19:49:04 +00:00
parent 8c8ba9eb9f
commit 824e44f63d
9 changed files with 958 additions and 766 deletions

View File

@@ -131,6 +131,21 @@ class SimpleAccess:
return person.get_primary_name().get_surname()
else:
return u''
def first_name(self, person):
"""
Returns the first name of the person, or and empty string if the person is None
@param person: Person object
@type person: L{RelLib.Person}
@return: Returns the first name of the person based of the program preferences
@rtype: unicode
"""
assert(isinstance(person, (RelLib.Person, NoneType)))
if person:
return person.get_primary_name().get_first_name()
else:
return u''
def gid(self, obj):
"""