Gnumed.timelinelib.canvas.data.db.MemoryDB

Package Gnumed :: Package timelinelib :: Package canvas :: Package data :: Module db :: Class MemoryDB |
[frames] | no frames]

# Class MemoryDB

source code

                     object --+
                              |
    general.observer.Observable --+
                                  |
                                 MemoryDB

Instance Methods
__init__(self) x.__init__(...) initializes x; see help(type(x)) for signature | source code
new_category(self, **kwargs) | source code
new_milestone(self, **kwargs) | source code
new_era(self, **kwargs) | source code
new_event(self, **kwargs) | source code
new_container(self, **kwargs) | source code
new_subevent(self, **kwargs) | source code
next_id(self) | source code
transaction(self, name) | source code
clear_transactions(self) | source code
transactions_status(self) | source code
display_in_canvas(self, canvas) | source code
is_saved(self) | source code
get_should_lock(self) | source code
set_should_lock(self, should_lock) | source code
register_save_callback(self, callback) | source code
get_time_type(self) | source code
set_time_type(self, time_type) | source code
is_read_only(self) | source code
set_readonly(self) | source code
search(self, search_string) | source code
get_events(self, time_period) | source code
get_all_events(self) | source code
get_max_sort_order(self) | source code
get_first_event(self) | source code
get_last_event(self) | source code
save_events(self, events) | source code
save_event(self, event) | source code
delete_event(self, event_or_id) | source code
get_all_eras(self) | source code
get_all_periods(self) | source code
save_era(self, era) | source code
delete_era(self, era) | source code
get_categories(self) | source code
get_containers(self) | source code
save_category(self, category) | source code
get_category_by_name(self, name) | source code
get_category_by_id(self, id_) | source code
delete_category(self, category_or_id) | source code
get_saved_now(self) | source code
set_saved_now(self, time) | source code
load_view_properties(self, view_properties) | source code
save_view_properties(self, view_properties) | source code
place_event_after_event(self, event_to_place, target_event) | source code
place_event_before_event(self, event_to_place, target_event) | source code
undo(self) | source code
redo(self) | source code
undo_enabled(self) | source code
redo_enabled(self) | source code
find_event_with_ids(self, ids) | source code
find_event_with_id(self, event_id) | source code
get_displayed_period(self) Inheritors can call this method to get the displayed period used in load_view_properties and save_view_properties. | source code
set_displayed_period(self, period) Inheritors can call this method to set the displayed period used in load_view_properties and save_view_properties. | source code
get_hidden_categories(self) | source code
set_hidden_categories(self, hidden_categories) | source code
import_db(self, db) | source code
compress(self) | source code
Inherited from `general.observer.Observable`: `listen_for`, `listen_for_any`, `register`, `unlisten`, `unregister` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self) (Constructor) | source code
x.__init__(...) initializes x; see help(type(x)) for signature Overrides: object.__init__ (inherited documentation)