Class p.s.s.s.Sessions(Service):

Part of pida.services.sessions.sessions View In Hierarchy

Store opened buffers for later use.

Session is a tool to save and restore the state of pida at any given point in time. This should include 1) opened buffers, 2) FileManager locations, possibly more.

should allow for multiple sessions to be saved and restored always save the last session

get the buffer service buffer = boss.get_service('buffer') get the list of buffers # added this function to the buffer service current_buffers = buffer.get_documents() files = [buffer.filename for buffer in current_buffers]

Split Table into Classes Show Methods in One Table

Line # Kind Name Docs
231 Method pre_start Override to pre start up
249 Method load_last_session Undocumented
253 Method load_session load the saved session file from disk
269 Method save_last_session Undocumented
273 Method save_current_session If no file_path is given save_current_session assumes you will be
288 Method _set_current_session Undocumented
292 Method _get_current_buffers retrieve the list of currently opened buffers from the buffer manager.
302 Method load_buffers load each file in self.buffers into the buffer manager

Inherited from Service:

Line # Kind Name Docs
31 Method __init__ Undocumented
36 Method create_all Called to create all the services by the
48 Method subscribe_all Undocumented
53 Method get_name Undocumented
56 Method get_label Undocumented
62 Method start Override for main phase of startup
65 Method stop Override to stop service
68 Method stop_components Undocumented
77 Method _register_options_config Undocumented
85 Method get_options Undocumented
88 Method get_option Undocumented
91 Method opt Undocumented
94 Method set_opt Undocumented
100 Method _register_commands_config Undocumented
108 Method _get_commands Undocumented
111 Method cmd Undocumented
123 Method _register_events_config Undocumented
129 Method _subscribe_foreign_events Undocumented
132 Method _unsubscribe_foreign_events Undocumented
136 Method _get_events Undocumented
139 Method get_event Undocumented
142 Method subscribe_foreign_event Undocumented
145 Method unsubscribe_foreign_event Undocumented
148 Method subscribe_event Undocumented
151 Method unsubscribe_event Undocumented
155 Method emit Undocumented
161 Method _register_feature_config Undocumented
167 Method _subscribe_foreign_features Undocumented
170 Method _unsubscribe_foreign_features Undocumented
173 Method _get_features Undocumented
178 Method list_features Undocumented
181 Method has_foreign_feature Undocumented
184 Method subscribe_feature Undocumented
187 Method unsubscribe_feature Undocumented
190 Method subscribe_foreign_feature Undocumented
193 Method unsubscribe_foreign_feature Undocumented
196 Method features Undocumented
202 Method _register_actions_config Undocumented
208 Method _unregister_actions_config Undocumented
211 Method _subscribe_keyboard_shortcuts Undocumented
214 Method _get_actions Undocumented
217 Method get_action_group Undocumented
220 Method get_action Undocumented
223 Method get_keyboard_options Undocumented
228 Method log_debug Undocumented
231 Method log_info Undocumented
234 Method log_warn Undocumented
237 Method log_error Undocumented
243 Method get_window Undocumented
248 Method save_dlg Undocumented
251 Method open_dlg Undocumented
254 Method info_dlg Undocumented
257 Method error_dlg Undocumented
260 Method yesno_dlg Undocumented
263 Method error_list_dlg Undocumented
Line # Kind Name Docs
31 Method __init__ Undocumented
214 Method _get_actions Undocumented
108 Method _get_commands Undocumented
292 Method _get_current_buffers retrieve the list of currently opened buffers from the buffer manager.
136 Method _get_events Undocumented
173 Method _get_features Undocumented
202 Method _register_actions_config Undocumented
100 Method _register_commands_config Undocumented
123 Method _register_events_config Undocumented
161 Method _register_feature_config Undocumented
77 Method _register_options_config Undocumented
288 Method _set_current_session Undocumented
129 Method _subscribe_foreign_events Undocumented
167 Method _subscribe_foreign_features Undocumented
211 Method _subscribe_keyboard_shortcuts Undocumented
208 Method _unregister_actions_config Undocumented
132 Method _unsubscribe_foreign_events Undocumented
170 Method _unsubscribe_foreign_features Undocumented
111 Method cmd Undocumented
36 Method create_all Called to create all the services by the
155 Method emit Undocumented
257 Method error_dlg Undocumented
263 Method error_list_dlg Undocumented
196 Method features Undocumented
220 Method get_action Undocumented
217 Method get_action_group Undocumented
139 Method get_event Undocumented
223 Method get_keyboard_options Undocumented
56 Method get_label Undocumented
53 Method get_name Undocumented
88 Method get_option Undocumented
85 Method get_options Undocumented
243 Method get_window Undocumented
181 Method has_foreign_feature Undocumented
254 Method info_dlg Undocumented
178 Method list_features Undocumented
302 Method load_buffers load each file in self.buffers into the buffer manager
249 Method load_last_session Undocumented
253 Method load_session load the saved session file from disk
228 Method log_debug Undocumented
237 Method log_error Undocumented
231 Method log_info Undocumented
234 Method log_warn Undocumented
251 Method open_dlg Undocumented
91 Method opt Undocumented
231 Method pre_start Override to pre start up
273 Method save_current_session If no file_path is given save_current_session assumes you will be
248 Method save_dlg Undocumented
269 Method save_last_session Undocumented
94 Method set_opt Undocumented
62 Method start Override for main phase of startup
65 Method stop Override to stop service
68 Method stop_components Undocumented
48 Method subscribe_all Undocumented
148 Method subscribe_event Undocumented
184 Method subscribe_feature Undocumented
142 Method subscribe_foreign_event Undocumented
190 Method subscribe_foreign_feature Undocumented
151 Method unsubscribe_event Undocumented
187 Method unsubscribe_feature Undocumented
145 Method unsubscribe_foreign_event Undocumented
193 Method unsubscribe_foreign_feature Undocumented
260 Method yesno_dlg Undocumented
def pre_start(self):
Override to pre start up
def load_last_session(self):
Undocumented
def load_session(self, file_path, set_current=None):
load the saved session file from disk
def save_last_session(self, document):
Undocumented
def save_current_session(self, file_path=None):
If no file_path is given save_current_session assumes you will be saving to the default last_session path which is /sessions/last.session
def _set_current_session(self, session):
Undocumented
def _get_current_buffers(self):
retrieve the list of currently opened buffers from the buffer manager.
def load_buffers(self, files):
load each file in self.buffers into the buffer manager
API Documentation for PIDA, generated by pydoctor.