Class s.g.s.u.PasswordEditorSlave(BaseEditorSlave):

Part of stoqlib.gui.slaves.userslave View In Hierarchy

A slave for asking (and confirming) password; Optionally, this slave can be used just to ask the password once, i.e, not displaying the entry for confirmation (see confirm_password parameter).
Method __init__ A base class for editor slaves inheritance
Method _setup_widgets Undocumented
Method invalidate_password Undocumented
Method _check_passwords Undocumented
Method set_password_labels Undocumented
Method create_model Creates a new model for the editor.
Method setup_proxies A subclass can override this
Method on_password__validate Undocumented
Method on_password__content_changed Undocumented
Method on_confirm_password__validate Undocumented
Method on_confirm_password__content_changed 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
def __init__(self, conn, model=None, visual_mode=False, confirm_password=True):
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 _setup_widgets(self):
Undocumented
def invalidate_password(self, message):
Undocumented
def _check_passwords(self):
Undocumented
def set_password_labels(self, password_lbl, confirm_password):
Undocumented
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 setup_proxies(self):
A subclass can override this
def on_password__validate(self, entry, password):
Undocumented
def on_password__content_changed(self, entry):
Undocumented
def on_confirm_password__validate(self, entry, password):
Undocumented
def on_confirm_password__content_changed(self, entry):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.