A proxy to a Gramps database. This proxy will act like a Gramps
database, but all data marked private will be hidden from the user.
|
set_prefixes(self,
person,
media,
family,
source,
place,
event,
repository,
note) |
source code
|
|
|
|
|
version_supported(self)
Return True when the file has a supported version |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_person_cursor_iter(self,
msg=' Processing Person records ' ) |
source code
|
|
|
|
|
get_family_cursor_iter(self,
msg=' Processing Family records ' ) |
source code
|
|
|
|
|
get_event_cursor_iter(self,
msg=' Processing Event records ' ) |
source code
|
|
|
|
|
get_place_cursor_iter(self,
msg=' Processing Place records ' ) |
source code
|
|
|
|
|
get_source_cursor_iter(self,
msg=' Processing Source records ' ) |
source code
|
|
|
|
|
get_media_cursor_iter(self,
msg=' Processing Media records ' ) |
source code
|
|
|
|
|
get_repository_cursor_iter(self,
msg=' Processing Repository records ' ) |
source code
|
|
|
|
|
get_note_cursor_iter(self,
msg=' Processing Note records ' ) |
source code
|
|
|
|
|
|
|
load(self,
name,
callback,
mode=' w ' )
Opens the specified database. |
source code
|
|
|
load_from(self,
other_database,
filename,
callback)
Loads data from the other database into itself. |
source code
|
|
|
|
|
is_open(self)
Return 1 if the database has been opened. |
source code
|
|
|
|
|
commit_base(self,
obj,
data_map,
key,
update_list,
add_list,
transaction,
change_time) |
source code
|
|
|
commit_person(self,
person,
transaction,
change_time=None) |
source code
|
|
|
commit_media_object(self,
obj,
transaction,
change_time=None) |
source code
|
|
|
commit_source(self,
source,
transaction,
change_time=None) |
source code
|
|
|
commit_place(self,
place,
transaction,
change_time=None) |
source code
|
|
|
commit_personal_event(self,
event,
transaction,
change_time=None) |
source code
|
|
|
commit_family_event(self,
event,
transaction,
change_time=None) |
source code
|
|
|
commit_event(self,
event,
transaction,
change_time=None) |
source code
|
|
|
commit_family(self,
family,
transaction,
change_time=None) |
source code
|
|
|
commit_repository(self,
repository,
transaction,
change_time=None) |
source code
|
|
|
commit_note(self,
note,
transaction,
change_time=None) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
add_person(self,
person,
transaction)
Add a Person to the database, assigning internal IDs if they have not
already been defined. |
source code
|
|
|
add_family(self,
family,
transaction)
Add a Family to the database, assigning internal IDs if they have not
already been defined. |
source code
|
|
|
add_source(self,
source,
transaction)
Add a Source to the database, assigning internal IDs if they have not
already been defined. |
source code
|
|
|
add_event(self,
event,
transaction)
Add an Event to the database, assigning internal IDs if they have not
already been defined. |
source code
|
|
|
add_person_event(self,
event,
transaction)
Add an Event to the database, assigning internal IDs if they have not
already been defined. |
source code
|
|
|
add_family_event(self,
event,
transaction)
Add an Event to the database, assigning internal IDs if they have not
already been defined. |
source code
|
|
|
add_place(self,
place,
transaction)
Add a Place to the database, assigning internal IDs if they have not
already been defined. |
source code
|
|
|
add_object(self,
obj,
transaction)
Add a MediaObject to the database, assigning internal IDs if they
have not already been defined. |
source code
|
|
|
add_repository(self,
obj,
transaction)
Add a Repository to the database, assigning internal IDs if they have
not already been defined. |
source code
|
|
|
add_note(self,
obj,
transaction)
Add a Note to the database, assigning internal IDs if they have not
already been defined. |
source code
|
|
|
get_name_group_mapping(self,
name)
Return the default grouping name for a surname |
source code
|
|
|
has_name_group_key(self,
name)
Return if a key exists in the name_group table |
source code
|
|
|
get_name_group_keys(self)
Return the defined names that have been assigned to a default
grouping |
source code
|
|
|
|
|
get_number_of_people(self)
Return the number of people currently in the databse. |
source code
|
|
|
get_number_of_families(self)
Return the number of families currently in the databse. |
source code
|
|
|
get_number_of_events(self)
Return the number of events currently in the databse. |
source code
|
|
|
get_number_of_places(self)
Return the number of places currently in the databse. |
source code
|
|
|
get_number_of_sources(self)
Return the number of sources currently in the databse. |
source code
|
|
|
get_number_of_media_objects(self)
Return the number of media objects currently in the databse. |
source code
|
|
|
get_number_of_repositories(self)
Return the number of source repositories currently in the databse. |
source code
|
|
|
get_number_of_notes(self)
Return the number of notes currently in the databse. |
source code
|
|
|
|
|
|
|
|
|
|
|
get_event_handles(self)
Return a list of database handles, one handle for each Event in the
database. |
source code
|
|
|
get_family_handles(self)
Return a list of database handles, one handle for each Family in the
database. |
source code
|
|
|
get_repository_handles(self)
Return a list of database handles, one handle for each Repository in
the database. |
source code
|
|
|
get_note_handles(self)
Return a list of database handles, one handle for each Note in the
database. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
transaction_commit(self,
transaction,
msg)
Commits the transaction to the assocated UNDO database. |
source code
|
|
|
|
|
undo_available(self)
returns boolean of whether or not there's a possibility of undo |
source code
|
|
|
redo_available(self)
returns boolean of whether or not there's a possibility of redo |
source code
|
|
|
undo(self,
update_history=True)
Accesses the last committed transaction, and reverts the data to the
state before the transaction was committed. |
source code
|
|
|
redo(self,
update_history=True)
Accesses the last undone transaction, and reverts the data to the
state before the transaction was undone. |
source code
|
|
|
|
|
|
|
|
|
get_surname_list(self)
Return the list of locale-sorted surnames contained in the database. |
source code
|
|
|
|
|
add_to_surname_list(self,
person,
batch_transaction) |
source code
|
|
|
|
|
get_bookmarks(self)
returns the list of Person handles in the bookmarks |
source code
|
|
|
get_family_bookmarks(self)
returns the list of Person handles in the bookmarks |
source code
|
|
|
get_event_bookmarks(self)
returns the list of Person handles in the bookmarks |
source code
|
|
|
get_place_bookmarks(self)
returns the list of Person handles in the bookmarks |
source code
|
|
|
get_source_bookmarks(self)
returns the list of Person handles in the bookmarks |
source code
|
|
|
get_media_bookmarks(self)
returns the list of Person handles in the bookmarks |
source code
|
|
|
get_repo_bookmarks(self)
returns the list of Person handles in the bookmarks |
source code
|
|
|
get_note_bookmarks(self)
returns the list of Note handles in the bookmarks |
source code
|
|
|
set_researcher(self,
owner)
sets the information about the owner of the database |
source code
|
|
|
get_researcher(self)
returns the Researcher instance, providing information about the
owner of the database |
source code
|
|
|
set_default_person_handle(self,
handle)
sets the default Person to the passed instance |
source code
|
|
|
get_default_person(self)
returns the default Person of the database |
source code
|
|
|
get_default_handle(self)
returns the default Person of the database |
source code
|
|
|
get_save_path(self)
returns the save path of the file, or "" if one does not
exist |
source code
|
|
|
set_save_path(self,
path)
sets the save path for the database |
source code
|
|
|
get_person_event_types(self)
returns a list of all Event types assocated with Person instances in
the database |
source code
|
|
|
get_person_attribute_types(self)
returns a list of all Attribute types assocated with Person instances
in the database |
source code
|
|
|
get_family_attribute_types(self)
returns a list of all Attribute types assocated with Family instances
in the database |
source code
|
|
|
get_family_event_types(self)
returns a list of all Event types assocated with Family instances in
the database |
source code
|
|
|
get_marker_types(self)
return a list of all marker types available in the database |
source code
|
|
|
get_media_attribute_types(self)
returns a list of all Attribute types assocated with Media and
MediaRef instances in the database |
source code
|
|
|
get_family_relation_types(self)
returns a list of all relationship types assocated with Family
instances in the database |
source code
|
|
|
get_child_reference_types(self)
returns a list of all child reference types assocated with Family
instances in the database |
source code
|
|
|
get_event_roles(self)
returns a list of all custom event role names assocated with Event
instances in the database |
source code
|
|
|
get_name_types(self)
returns a list of all custom names types assocated with Person
instances in the database |
source code
|
|
|
get_repository_types(self)
returns a list of all custom repository types assocated with
Repository instances in the database |
source code
|
|
|
get_note_types(self)
returns a list of all custom note types assocated with Note instances
in the database |
source code
|
|
|
get_source_media_types(self)
returns a list of all custom source media types assocated with Source
instances in the database |
source code
|
|
|
get_url_types(self)
returns a list of all custom names types assocated with Url instances
in the database |
source code
|
|
|
remove_person(self,
handle,
transaction)
Remove the Person specified by the database handle from the database,
preserving the change in the passed transaction. |
source code
|
|
|
remove_source(self,
handle,
transaction)
Remove the Source specified by the database handle from the database,
preserving the change in the passed transaction. |
source code
|
|
|
remove_event(self,
handle,
transaction)
Remove the Event specified by the database handle from the database,
preserving the change in the passed transaction. |
source code
|
|
|
remove_object(self,
handle,
transaction)
Remove the MediaObjectPerson specified by the database handle from
the database, preserving the change in the passed transaction. |
source code
|
|
|
remove_place(self,
handle,
transaction)
Remove the Place specified by the database handle from the database,
preserving the change in the passed transaction. |
source code
|
|
|
remove_family(self,
handle,
transaction)
Remove the Family specified by the database handle from the database,
preserving the change in the passed transaction. |
source code
|
|
|
remove_repository(self,
handle,
transaction)
Remove the Repository specified by the database handle from the
database, preserving the change in the passed transaction. |
source code
|
|
|
remove_note(self,
handle,
transaction)
Remove the Note specified by the database handle from the database,
preserving the change in the passed transaction. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
has_person_handle(self,
handle)
returns True if the handle exists in the current Person database. |
source code
|
|
|
has_event_handle(self,
handle)
returns True if the handle exists in the current Event database. |
source code
|
|
|
has_source_handle(self,
handle)
returns True if the handle exists in the current Source database. |
source code
|
|
|
has_place_handle(self,
handle)
returns True if the handle exists in the current Place database. |
source code
|
|
|
has_family_handle(self,
handle)
returns True if the handle exists in the current Family database. |
source code
|
|
|
has_object_handle(self,
handle)
returns True if the handle exists in the current MediaObjectdatabase. |
source code
|
|
|
has_repository_handle(self,
handle)
returns True if the handle exists in the current Repository database. |
source code
|
|
|
has_note_handle(self,
handle)
returns True if the handle exists in the current Note database. |
source code
|
|
|
set_mediapath(self,
path)
sets the default media path for database, path should be utf-8 |
source code
|
|
|
get_mediapath(self)
returns the default media path of the database |
source code
|
|
|
|
|
set_person_column_order(self,
col_list)
Stores the Person display common information in the database's
metadata. |
source code
|
|
|
set_family_list_column_order(self,
col_list)
Stores the Person display common information in the database's
metadata. |
source code
|
|
|
set_child_column_order(self,
col_list)
Stores the Person display common information in the database's
metadata. |
source code
|
|
|
set_place_column_order(self,
col_list)
Stores the Place display common information in the database's
metadata. |
source code
|
|
|
set_source_column_order(self,
col_list)
Stores the Source display common information in the database's
metadata. |
source code
|
|
|
set_media_column_order(self,
col_list)
Stores the Media display common information in the database's
metadata. |
source code
|
|
|
set_event_column_order(self,
col_list)
Stores the Event display common information in the database's
metadata. |
source code
|
|
|
set_repository_column_order(self,
col_list)
Stores the Repository display common information in the database's
metadata. |
source code
|
|
|
set_note_column_order(self,
col_list)
Stores the Note display common information in the database's
metadata. |
source code
|
|
|
get_person_column_order(self)
Return the Person display common information stored in the database's
metadata. |
source code
|
|
|
get_family_list_column_order(self)
Return the Person display common information stored in the database's
metadata. |
source code
|
|
|
get_child_column_order(self)
Return the Person display common information stored in the database's
metadata. |
source code
|
|
|
get_place_column_order(self)
Return the Place display common information stored in the database's
metadata. |
source code
|
|
|
get_source_column_order(self)
Return the Source display common information stored in the database's
metadata. |
source code
|
|
|
get_media_column_order(self)
Return the MediaObject display common information stored in the
database's metadata. |
source code
|
|
|
get_event_column_order(self)
Return the Event display common information stored in the database's
metadata. |
source code
|
|
|
get_repository_column_order(self)
Return the Repository display common information stored in the
database's metadata. |
source code
|
|
|
get_note_column_order(self)
Return the Note display common information stored in the database's
metadata. |
source code
|
|
|
|
|
|
|
reindex_reference_map(self,
callback)
Reindex all primary records in the database. |
source code
|
|
|
|