Provides a simplified database access system. This system has been
designed to ease the development of reports.
The user needs to take care when using this interface. Since it
returns real objects instead of database references, it can consume a
significant amount of memory if the user is not careful.
|
|
__init__(self,
dbase)
Initializes the SimpleAccess object with the database that will be
used. |
source code
|
|
|
unicode
|
name(self,
person)
Returns the name of the person, or and empty string if the person
is None |
source code
|
|
|
unicode
|
surname(self,
person)
Returns the name of the person, or and empty string if the person
is None |
source code
|
|
|
unicode
|
gid(self,
obj)
Returns the GRAMPS ID of the person or family |
source code
|
|
|
unicode
|
gender(self,
person)
Returns a string representing the gender of the person |
source code
|
|
|
RelLib.Person
|
|
|
unicode
|
marriage_type(self,
person)
Returns a string describing the relationship between the person
and his/per primary spouse. |
source code
|
|
|
unicode
|
marriage_place(self,
person)
Returns a string describing the place where the person and his/her
spouse where married. |
source code
|
|
|
unicode
|
marriage_date(self,
person)
Returns a string indicating the date when the person and his/her
spouse where married. |
source code
|
|
|
list
|
children(self,
obj)
Returns a list of the children as the children of the primary
spouse. |
source code
|
|
|
RelLib.Person
|
father(self,
obj)
Returns the primary father of the person or the father of the
associated family. |
source code
|
|
|
RelLib.Person
|
mother(self,
obj)
Returns the primary mother of the person or the mother of the
associated family. |
source code
|
|
|
unicode
|
|
|
unicode
|
|
|
unicode
|
|
|
unicode
|
|
|
unicode
|
|
|
unicode
|
|
|
unicode
|
|
|
list
|
events(self,
obj,
restrict=None)
Returns a list of events associated with the object. |
source code
|
|
|
list
|
|
|
list
|
parent_in(self,
person)
Returns a list of families in which the person is listed as a
parent. |
source code
|
|
|
list
|
child_in(self,
person)
Returns a list of families in which the person is listed as a
child. |
source code
|
|
|
list
|
|
|
list
|
|
|
list
|
|
|
list
|
|
|
unicode
|
|
|
unicode
|
|