Part of stoqlib.gui.templates.persontemplate View In Hierarchy
Known subclasses: stoqlib.gui.editors.personeditor.BranchEditor, stoqlib.gui.editors.personeditor.ClientEditor, stoqlib.gui.editors.personeditor.CreditProviderEditor, stoqlib.gui.editors.personeditor.EmployeeEditor, stoqlib.gui.editors.personeditor.SupplierEditor, stoqlib.gui.editors.personeditor.TransporterEditor, stoqlib.gui.editors.personeditor.UserEditor
Instance Variables | main_slave | |
individual_slave | ||
company_slave |
Method | __init__ | Creates a new BasePersonRoleEditor object |
Method | create_model | Creates a new model for the editor. |
Method | setup_slaves | A subclass can override this |
Method | on_confirm | This is a hook method which must be redefined when some |
Method | get_person_slave | Undocumented |
Method | set_phone_number | Undocumented |
Inherited from BaseEditor:
Method | _get_title_format | Undocumented |
Method | get_title | Undocumented |
Method | enable_window_controls | Enables the window controls |
Method | set_description | Sets the description of the model object which is used by the editor |
Method | refresh_ok | Refreshes ok button sensitivity according to widget validators |
Method | add_button | Adds a button to editor. The added button is returned which you |
Method | cancel | Cancel the dialog. |
Method | confirm | Confirm the dialog. |
Method | enable_ok | Enable the ok button of the dialog, eg makes it possible |
Method | enable_normal_window | Enable the dialog as a normal window. |
Method | set_confirm_widget | Make a widget confirmable, eg activating that widget would |
Inherited from BaseEditorSlave (via BaseEditor):
Method | _setup_visual_mode | Undocumented |
Method | setup_proxies | A subclass can override this |
Method | on_cancel | 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 |
Parameters | conn | a database connection |
model | ||
none_type | None, ROLE_INDIVIDUAL or ROLE_COMPANY | |
person | ||
visual_mode |
Parameters | trans | a database transaction |