Class s.g.e.a.AddressSlave(BaseEditorSlave):

Part of stoqlib.gui.editors.addresseditor View In Hierarchy

No class docstring
Method __init__ A base class for editor slaves inheritance
Method create_model Creates a new model for the editor.
Method set_model Changes proxy model. This method is used when this slave is
Method confirm Undocumented
Method setup_proxies A subclass can override this
Method can_confirm Undocumented
Method _update_streetnumber Undocumented
Method on_streetnumber__validate Undocumented
Method on_streetnumber_check__clicked Undocumented

Inherited from BaseEditorSlave:

Method _setup_visual_mode Undocumented
Method setup_slaves A subclass can override this
Method on_cancel This is a hook method which must be redefined when some
Method on_confirm This is a hook method which must be redefined when some
Method update_visual_mode This method must be overwritten on child if some addition task in
Method validate_confirm Must be redefined by childs and will perform some validations
@argcheck(object, Person, Address, bool, bool)
def __init__(self, conn, person, model=None, is_main_address=True, visual_mode=False):
A base class for editor slaves inheritance
Parametersconna connection
modelthe object model tied with the proxy widgets
visual_modedoes this slave must be opened in visual mode? if so, all the proxy widgets will be disable
def create_model(self, conn):
Creates a new model for the editor. After this method is called, the model can be accessed as self.model. The default behavior is to raise a TypeError, which can be overridden in a subclass.
Parameterstransa database transaction
def set_model(self, model):
Changes proxy model. This method is used when this slave is attached as a container for the main address and the main address needs to be changed, so this slave must reflect the new address defined.
def confirm(self):
Undocumented
def setup_proxies(self):
A subclass can override this
def can_confirm(self):
Undocumented
def _update_streetnumber(self):
Undocumented
def on_streetnumber__validate(self, entry, streetnumber):
Undocumented
def on_streetnumber_check__clicked(self, check_button):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.