Class p.u.r.s.PersistencyLink(object):

Part of pida.utils.rat.swp View In Hierarchy

This utility class acts as a synchronizer between a widget and storage value. This data is considered to have problematic backends, since widgets can be destroyed and storage can have integrity problems (for example permissions or schema change).
Line # Kind Name Docs
53 Method __init__ @param widget: This is the widget this is observing.
85 Method get_data Undocumented
91 Method set_data Undocumented
99 Method get_widget Undocumented
107 Method _on_destroy Undocumented
110 Method _on_widget_changed Undocumented
117 Method _on_storage_changed Undocumented
128 Method sync_widget Synchronizes the widget in favour of the gconf key. You must check if
146 Method _check_sync Undocumented
156 Method sync_storage Synchronizes the gconf key in favour of the widget. You must check if
def __init__(self, widget, widget_getter, widget_setter, changed_signal, storage, is_lazy=False):
@param widget: This is the widget this is observing. @type widget: gtk.Widget

@param widget_getter: The function that gets the widget's data

@param widget_setter: The function that sets the widget's data

@param changed_signal: The name of the signal this observer should be connecting too.

@param storage: The value contained in the data storage

@type storage: IStorage

def get_data(self, sync_storage=True):
Undocumented
def set_data(self, data):
Undocumented
def get_widget(self):
Undocumented
def _on_destroy(self, widget):
Undocumented
def _on_widget_changed(self, *args):
Undocumented
def _on_storage_changed(self, storage):
Undocumented
def sync_widget(self):
Synchronizes the widget in favour of the gconf key. You must check if there is a valid widget before calling this method.
def _check_sync(self, value):
Undocumented
def sync_storage(self):
Synchronizes the gconf key in favour of the widget. You must check if there is a valid widget before calling this method.
API Documentation for PIDA, generated by pydoctor.