GRAMPS database object.
This object is a base class for other objects.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
load(self,
name,
callback,
mode=' w ' )
Open the specified database. |
source code
|
|
|
open_undodb(self)
Override method from GrampsDbBase because in DIR setup we want the
undo database to be inside the dir. |
source code
|
|
|
load_from(self,
other_database,
filename,
callback)
Load data from the other database into itself. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commit_base(self,
obj,
data_map,
key,
update_list,
add_list,
transaction,
change_time)
Commit the specified object to the database, storing the changes as
part of the transaction. |
source code
|
|
|
|
|
|
tuple
|
find_from_handle(self,
handle,
transaction,
class_type,
dmap,
add_func)
Find a object of class_type in the database from the passed handle. |
source code
|
|
|
|
|
|
|
undo(self,
update_history=True)
Access the last committed transaction, and revert the data to the
state before the transaction was committed. |
source code
|
|
|
redo(self,
update_history=True)
Accesse the last undone transaction, and revert the data to the state
before the transaction was undone. |
source code
|
|
|
|
|
|
|
|
Inherited from base.GrampsDbBase :
add_event ,
add_family ,
add_family_event ,
add_note ,
add_object ,
add_person ,
add_person_event ,
add_place ,
add_repository ,
add_source ,
add_to_surname_list ,
check_event_from_handle ,
check_family_from_handle ,
check_note_from_handle ,
check_object_from_handle ,
check_person_from_handle ,
check_place_from_handle ,
check_repository_from_handle ,
check_source_from_handle ,
close_undodb ,
commit_event ,
commit_family ,
commit_family_event ,
commit_media_object ,
commit_note ,
commit_person ,
commit_personal_event ,
commit_place ,
commit_repository ,
commit_source ,
create_id ,
db_has_bm_changes ,
find_event_from_handle ,
find_family_from_handle ,
find_initial_person ,
find_next_event_gramps_id ,
find_next_family_gramps_id ,
find_next_note_gramps_id ,
find_next_object_gramps_id ,
find_next_person_gramps_id ,
find_next_place_gramps_id ,
find_next_repository_gramps_id ,
find_next_source_gramps_id ,
find_note_from_handle ,
find_object_from_handle ,
find_person_from_handle ,
find_place_from_handle ,
find_repository_from_handle ,
find_source_from_handle ,
get_bookmarks ,
get_child_column_order ,
get_child_reference_types ,
get_default_handle ,
get_del_func ,
get_event_bookmarks ,
get_event_column_order ,
get_event_cursor_iter ,
get_event_from_handle ,
get_event_handles ,
get_event_roles ,
get_family_attribute_types ,
get_family_bookmarks ,
get_family_cursor_iter ,
get_family_event_types ,
get_family_from_handle ,
get_family_handles ,
get_family_list_column_order ,
get_family_relation_types ,
get_gramps_ids ,
get_marker_types ,
get_media_attribute_types ,
get_media_bookmarks ,
get_media_column_order ,
get_media_cursor_iter ,
get_media_object_handles ,
get_mediapath ,
get_name_group_keys ,
get_name_group_mapping ,
get_name_types ,
get_note_bookmarks ,
get_note_column_order ,
get_note_cursor_iter ,
get_note_from_handle ,
get_note_handles ,
get_note_types ,
get_number_of_events ,
get_number_of_families ,
get_number_of_media_objects ,
get_number_of_notes ,
get_number_of_people ,
get_number_of_places ,
get_number_of_repositories ,
get_number_of_sources ,
get_object_from_handle ,
get_person_attribute_types ,
get_person_column_order ,
get_person_cursor_iter ,
get_person_event_types ,
get_person_from_handle ,
get_person_handles ,
get_place_bookmarks ,
get_place_column_order ,
get_place_cursor_iter ,
get_place_from_handle ,
get_place_handles ,
get_repo_bookmarks ,
get_repository_column_order ,
get_repository_cursor_iter ,
get_repository_from_handle ,
get_repository_handles ,
get_repository_types ,
get_researcher ,
get_save_path ,
get_source_bookmarks ,
get_source_column_order ,
get_source_cursor_iter ,
get_source_from_handle ,
get_source_handles ,
get_source_media_types ,
get_surname_list ,
get_url_types ,
has_gramps_id ,
has_name_group_key ,
is_open ,
redo_available ,
remove_event ,
remove_family ,
remove_note ,
remove_object ,
remove_person ,
remove_place ,
remove_repository ,
remove_source ,
report_bm_change ,
request_rebuild ,
set_child_column_order ,
set_event_column_order ,
set_event_id_prefix ,
set_family_id_prefix ,
set_family_list_column_order ,
set_media_column_order ,
set_note_column_order ,
set_note_id_prefix ,
set_object_id_prefix ,
set_person_column_order ,
set_person_id_prefix ,
set_place_column_order ,
set_place_id_prefix ,
set_prefixes ,
set_redo_callback ,
set_repository_column_order ,
set_repository_id_prefix ,
set_researcher ,
set_save_path ,
set_source_column_order ,
set_source_id_prefix ,
set_undo_callback ,
sort_surname_list ,
undo_available
Inherited from utils.callback.Callback :
connect ,
disable_logging ,
disable_signals ,
disconnect ,
emit ,
enable_logging ,
enable_signals
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
Inherited from BasicUtils._UpdateCallback.UpdateCallback :
reset ,
set_total ,
update_empty ,
update_real
|