Trees | Indices | Help |
|
---|
|
Introduction ============ The Family record is the GRAMPS in-memory representation of the relationships between people. It contains all the information related to the relationship. Usage ===== Family objects are usually created in one of two ways. 1. Creating a new Family object, which is then initialized and added to the database. 2. Retrieving an object from the database using the records handle. Once a Family object has been modified, it must be committed to the database using the database object's commit_family function, or the changes will be lost.
Instance Methods | |||
|
|||
tuple |
|
||
|
|||
list |
|
||
list |
|
||
list |
|
||
list |
|
||
list |
|
||
list |
|
||
|
|||
|
|||
|
|||
str |
|
||
|
|||
str |
|
||
|
|||
bool |
|
||
bool |
|
||
list |
|
||
|
|||
|
|||
|
|||
list |
|
||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
Method Details |
Create a new Family instance. After initialization, most data items have empty or null values, including the database handle.
|
Convert the data held in the event to a Python tuple that represents all the data elements. This method is used to convert the object into a form that can easily be saved to a database. These elements may be primative Python types (string, integers), complex Python types (lists or tuples, or Python objects. If the target database cannot handle complex types (such as objectes or lists), the database is responsible for converting the data into a form that it can use.
|
Convert the data held in a tuple created by the serialize method back into the data in a Family structure.
|
Return the list of all textual attributes of the object.
|
Return the list of child objects that may carry textual data.
|
Return the list of child secondary objects that may refer sources.
|
Return the list of child secondary objects that may refer notes.
|
Return the list of (classname, handle) tuples for all directly referenced primary objects.
|
Return the list of child objects which may, directly or through their children, reference primary objects..
|
Set the relationship type between the people identified as the father and mother in the relationship. The type is a tuple whose first item is an integer constant and whose second item is the string. The valid values are:
|
Set the database handle for Person that corresponds to male of the relationship. For a same sex relationship, this can represent either of people involved in the relationship.
|
Return the database handle of the Person identified as the father of the Family.
|
Set the database handle for Person that corresponds to male of the relationship. For a same sex relationship, this can represent either of people involved in the relationship.
|
Return the database handle of the Person identified as the mother of the Family.
|
Add the database handle for Person to the Family's list of children.
|
Remove the database handle for Person to the Family's list of children if the Person is already in the list.
|
Remove the database handle for Person to the Family's list of children if the Person is already in the list.
|
Return the list of ChildRef handles identifying the children of the Family.
|
Assign the passed list to the Family's list children.
|
Add the EventRef to the Family instance's EventRef list. This is accomplished by assigning the EventRef for the valid Eventin the current database. |
Return the list of EventRef objects associated with Event instances.
|
Set the Family instance's EventRef list to the passed list.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Mar 9 21:52:33 2008 | http://epydoc.sourceforge.net |