Class s.g.e.b.BaseEditorSlave(GladeSlaveDelegate):

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

Known subclasses: stoqlib.gui.base.slaves.NoteSlave, stoqlib.gui.base.wizards.WizardEditorStep, stoqlib.gui.editors.addresseditor.AddressSlave, stoqlib.gui.editors.baseeditor.BaseEditor, stoqlib.gui.editors.producteditor.ProductComponentSlave, stoqlib.gui.editors.tilleditor.BaseCashSlave, stoqlib.gui.printing.PrintDialogSlave, stoqlib.gui.slaves.branchslave.BranchDetailsSlave, stoqlib.gui.slaves.cashchangeslave.CashChangeSlave, stoqlib.gui.slaves.clientslave.ClientStatusSlave, stoqlib.gui.slaves.commissionslave.CommissionSlave, stoqlib.gui.slaves.credproviderslave.CreditProviderDetailsSlave, stoqlib.gui.slaves.employeeslave.EmployeeDetailsSlave, stoqlib.gui.slaves.employeeslave.EmployeeRoleSlave, stoqlib.gui.slaves.employeeslave.EmployeeStatusSlave, stoqlib.gui.slaves.imageslaveslave.ImageSlave, stoqlib.gui.slaves.paymentslave.BankDataSlave, stoqlib.gui.slaves.paymentslave.BasePaymentMethodSlave, stoqlib.gui.slaves.paymentslave.BillDataSlave, stoqlib.gui.slaves.paymentslave.CardMethodSlave, stoqlib.gui.slaves.paymentslave.MultipleMethodSlave, stoqlib.gui.slaves.paymentslave.PaymentListSlave, stoqlib.gui.slaves.productslave.ProductInformationSlave, stoqlib.gui.slaves.purchaseslave.PurchasePaymentSlave, stoqlib.gui.slaves.receivingslave.ReceivingInvoiceSlave, stoqlib.gui.slaves.saleslave.SaleDiscountSlave, stoqlib.gui.slaves.saleslave.SaleReturnSlave, stoqlib.gui.slaves.sellableslave.OnSaleInfoSlave, stoqlib.gui.slaves.sellableslave.SellableDetailsSlave, stoqlib.gui.slaves.sellableslave.TributarySituationSlave, stoqlib.gui.slaves.supplierslave.SupplierDetailsSlave, stoqlib.gui.slaves.transporterslave.TransporterDataSlave, stoqlib.gui.slaves.userslave.PasswordEditorSlave, stoqlib.gui.slaves.userslave.UserDetailsSlave, stoqlib.gui.slaves.userslave.UserStatusSlave, stoqlib.gui.templates.companytemplate.CompanyDocumentsSlave, stoqlib.gui.templates.companytemplate.CompanyEditorTemplate, stoqlib.gui.templates.individualtemplate._IndividualDetailsSlave, stoqlib.gui.templates.individualtemplate._IndividualDocuments, stoqlib.gui.templates.individualtemplate.IndividualEditorTemplate, stoqlib.gui.templates.persontemplate._PersonEditorTemplate

Base class for editor slaves inheritance. It offers methods for setting up focus sequence, required attributes and validated attrs.
Class Variablesgladefile
model_type
model_iface
Method __init__ A base class for editor slaves inheritance
Method _setup_visual_mode Undocumented
Method create_model Creates a new model for the editor.
Method setup_proxies A subclass can override this
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):
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_visual_mode(self):
Undocumented
def create_model(self, trans):
overridden in stoqlib.gui.dialogs.openinventorydialog.OpenInventoryDialog, stoqlib.gui.dialogs.paymentadditiondialog.BasePaymentAddition, stoqlib.gui.dialogs.paymentchangedialog.BasePaymentChangeDialog, stoqlib.gui.editors.addresseditor.AddressEditor, stoqlib.gui.editors.addresseditor.AddressSlave, stoqlib.gui.editors.categoryeditor.BaseSellableCategoryEditor, stoqlib.gui.editors.categoryeditor.SellableCategoryEditor, stoqlib.gui.editors.contacteditor.ContactEditor, stoqlib.gui.editors.deviceseditor.DeviceSettingsEditor, stoqlib.gui.editors.fiscaleditor.CfopEditor, stoqlib.gui.editors.invoiceeditor.InvoiceLayoutEditor, stoqlib.gui.editors.invoiceeditor.InvoicePrinterEditor, stoqlib.gui.editors.paymentcategoryeditor.PaymentCategoryEditor, stoqlib.gui.editors.personeditor.EmployeeRoleEditor, stoqlib.gui.editors.producteditor.ProductComponentSlave, stoqlib.gui.editors.producteditor.ProductEditor, stoqlib.gui.editors.profileeditor.UserProfileEditor, stoqlib.gui.editors.sellableeditor.SellableTaxConstantEditor, stoqlib.gui.editors.serviceeditor.ServiceEditor, stoqlib.gui.editors.stationeditor.StationEditor, stoqlib.gui.editors.tilleditor.CashAdvanceEditor, stoqlib.gui.editors.tilleditor.CashInEditor, stoqlib.gui.editors.tilleditor.CashOutEditor, stoqlib.gui.editors.tilleditor.TillClosingEditor, stoqlib.gui.editors.tilleditor.TillOpeningEditor, stoqlib.gui.printing.PrintDialogSlave, stoqlib.gui.slaves.employeeslave.EmployeeRoleSlave, stoqlib.gui.slaves.installmentslave.PurchaseInstallmentConfirmationSlave, stoqlib.gui.slaves.installmentslave.SaleInstallmentConfirmationSlave, stoqlib.gui.slaves.paymentslave.BasePaymentMethodSlave, stoqlib.gui.slaves.paymentslave.BillDataSlave, stoqlib.gui.slaves.paymentslave.CardMethodSlave, stoqlib.gui.slaves.sellableslave.OnSaleInfoSlave, stoqlib.gui.slaves.userslave.PasswordEditor, stoqlib.gui.slaves.userslave.PasswordEditorSlave, stoqlib.gui.templates.persontemplate._PersonEditorTemplate, stoqlib.gui.templates.persontemplate.BasePersonRoleEditor, stoqlib.gui.wizards.personwizard.PersonRoleTypeStep
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):
overridden in stoqlib.gui.base.slaves.NoteSlave, stoqlib.gui.dialogs.clientdetails.ClientDetailsDialog, stoqlib.gui.dialogs.openinventorydialog.OpenInventoryDialog, stoqlib.gui.dialogs.paymentadditiondialog.BasePaymentAddition, stoqlib.gui.dialogs.paymentadditiondialog.LonelyPaymentDetailsDialog, stoqlib.gui.dialogs.paymentchangedialog.BasePaymentChangeDialog, stoqlib.gui.dialogs.productadjustmentdialog.AdjustmentDialog, stoqlib.gui.dialogs.productadjustmentdialog.ProductsAdjustmentDialog, stoqlib.gui.dialogs.productretention.ProductRetentionDialog, stoqlib.gui.dialogs.productstockdetails.ProductStockHistoryDialog, stoqlib.gui.dialogs.purchasedetails.PurchaseDetailsDialog, stoqlib.gui.dialogs.receivingdialog.ReceivingOrderDetailsDialog, stoqlib.gui.dialogs.renegotiationdetails.RenegotiationDetailsDialog, stoqlib.gui.dialogs.saledetails.SaleDetailsDialog, stoqlib.gui.dialogs.supplierdetails.SupplierDetailsDialog, stoqlib.gui.dialogs.transferorderdialog.TransferOrderDetailsDialog, stoqlib.gui.editors.addresseditor.AddressSlave, stoqlib.gui.editors.categoryeditor.BaseSellableCategoryEditor, stoqlib.gui.editors.categoryeditor.SellableCategoryEditor, stoqlib.gui.editors.contacteditor.ContactEditor, stoqlib.gui.editors.deviceseditor.DeviceSettingsEditor, stoqlib.gui.editors.fiscaleditor.CfopEditor, stoqlib.gui.editors.fiscaleditor.FiscalBookEntryEditor, stoqlib.gui.editors.invoiceeditor.InvoiceLayoutEditor, stoqlib.gui.editors.invoiceeditor.InvoicePrinterEditor, stoqlib.gui.editors.invoiceeditor.SaleInvoicePrinterDialog, stoqlib.gui.editors.noteeditor.NoteEditor, stoqlib.gui.editors.parameterseditor.SystemParameterEditor, stoqlib.gui.editors.paymentcategoryeditor.PaymentCategoryEditor, stoqlib.gui.editors.paymentmethodeditor.PaymentMethodEditor, stoqlib.gui.editors.producteditor.ProductComponentEditor, stoqlib.gui.editors.producteditor.ProductSupplierEditor, stoqlib.gui.editors.profileeditor.UserProfileEditor, stoqlib.gui.editors.purchaseeditor.PurchaseItemEditor, stoqlib.gui.editors.receivingeditor.ReceivingItemEditor, stoqlib.gui.editors.saleeditor.SaleQuoteItemEditor, stoqlib.gui.editors.sellableeditor.SellableEditor, stoqlib.gui.editors.sellableeditor.SellablePriceEditor, stoqlib.gui.editors.sellableeditor.SellableTaxConstantEditor, stoqlib.gui.editors.serviceeditor.ServiceItemEditor, stoqlib.gui.editors.simpleeditor.SimpleEntryEditor, stoqlib.gui.editors.stationeditor.StationEditor, stoqlib.gui.editors.tilleditor.BaseCashSlave, stoqlib.gui.editors.tilleditor.TillClosingEditor, stoqlib.gui.editors.tilleditor.TillOpeningEditor, stoqlib.gui.printing.PrintDialogSlave, stoqlib.gui.slaves.branchslave.BranchDetailsSlave, stoqlib.gui.slaves.clientslave.ClientStatusSlave, stoqlib.gui.slaves.commissionslave.CommissionSlave, stoqlib.gui.slaves.credproviderslave.CreditProviderDetailsSlave, stoqlib.gui.slaves.employeeslave.EmployeeDetailsSlave, stoqlib.gui.slaves.employeeslave.EmployeeRoleSlave, stoqlib.gui.slaves.employeeslave.EmployeeStatusSlave, stoqlib.gui.slaves.installmentslave._InstallmentConfirmationSlave, stoqlib.gui.slaves.paymentslave.BankDataSlave, stoqlib.gui.slaves.paymentslave.BasePaymentMethodSlave, stoqlib.gui.slaves.paymentslave.BillDataSlave, stoqlib.gui.slaves.paymentslave.CardMethodSlave, stoqlib.gui.slaves.paymentslave.MultipleMethodSlave, stoqlib.gui.slaves.productslave.ProductInformationSlave, stoqlib.gui.slaves.purchaseslave.PurchasePaymentSlave, stoqlib.gui.slaves.receivingslave.ReceivingInvoiceSlave, stoqlib.gui.slaves.saleslave.SaleDiscountSlave, stoqlib.gui.slaves.saleslave.SaleReturnSlave, stoqlib.gui.slaves.sellableslave.OnSaleInfoSlave, stoqlib.gui.slaves.sellableslave.SellableDetailsSlave, stoqlib.gui.slaves.sellableslave.TributarySituationSlave, stoqlib.gui.slaves.supplierslave.SupplierDetailsSlave, stoqlib.gui.slaves.transporterslave.TransporterDataSlave, stoqlib.gui.slaves.userslave.PasswordEditor, stoqlib.gui.slaves.userslave.PasswordEditorSlave, stoqlib.gui.slaves.userslave.UserDetailsSlave, stoqlib.gui.slaves.userslave.UserStatusSlave, stoqlib.gui.templates.companytemplate.CompanyDocumentsSlave, stoqlib.gui.templates.individualtemplate._IndividualDetailsSlave, stoqlib.gui.templates.individualtemplate._IndividualDocuments, stoqlib.gui.templates.persontemplate._PersonEditorTemplate, stoqlib.gui.wizards.abstractwizard.SellableItemStep, stoqlib.gui.wizards.personwizard.PersonRoleTypeStep, stoqlib.gui.wizards.purchasefinishwizard.PurchaseFinishPaymentAdjustStep, stoqlib.gui.wizards.purchasequotewizard.StartQuoteStep, stoqlib.gui.wizards.purchasewizard.FinishPurchaseStep, stoqlib.gui.wizards.purchasewizard.PurchasePaymentStep, stoqlib.gui.wizards.purchasewizard.StartPurchaseStep, stoqlib.gui.wizards.renegotiationwizard.PaymentRenegotiationPaymentListStep, stoqlib.gui.wizards.salequotewizard.StartSaleQuoteStep, stoqlib.gui.wizards.salewizard.SalesPersonStep
A subclass can override this
def setup_slaves(self):
overridden in stoqlib.gui.dialogs.initialstockdialog.InitialStockDialog, stoqlib.gui.dialogs.productcountingdialog.ProductCountingDialog, stoqlib.gui.dialogs.quotedialog.QuoteFillingDialog, stoqlib.gui.dialogs.receivingdialog.ReceivingOrderDetailsDialog, stoqlib.gui.dialogs.saledetails.SaleReturnDetailsDialog, stoqlib.gui.editors.addresseditor.AddressEditor, stoqlib.gui.editors.categoryeditor.BaseSellableCategoryEditor, stoqlib.gui.editors.categoryeditor.SellableCategoryEditor, stoqlib.gui.editors.parameterseditor.SystemParameterEditor, stoqlib.gui.editors.producteditor.ProductEditor, stoqlib.gui.editors.producteditor.ProductStockEditor, stoqlib.gui.editors.profileeditor.UserProfileEditor, stoqlib.gui.editors.sellableeditor.SellablePriceEditor, stoqlib.gui.editors.serviceeditor.ServiceEditor, stoqlib.gui.editors.tilleditor.CashAdvanceEditor, stoqlib.gui.editors.tilleditor.CashInEditor, stoqlib.gui.editors.tilleditor.CashOutEditor, stoqlib.gui.slaves.paymentslave.CheckDataSlave, stoqlib.gui.slaves.productslave.ProductDetailsSlave, stoqlib.gui.slaves.userslave.PasswordEditor, stoqlib.gui.templates.companytemplate.CompanyEditorTemplate, stoqlib.gui.templates.individualtemplate.IndividualEditorTemplate, stoqlib.gui.templates.persontemplate._PersonEditorTemplate, stoqlib.gui.templates.persontemplate.BasePersonRoleEditor, stoqlib.gui.wizards.abstractwizard.SellableItemStep, stoqlib.gui.wizards.receivingwizard.PurchaseSelectionStep, stoqlib.gui.wizards.salereturnwizard.SaleReturnStep, stoqlib.gui.wizards.salewizard.SalesPersonStep
A subclass can override this
def on_cancel(self):
This is a hook method which must be redefined when some action needs to be executed when cancelling in the dialog.
def on_confirm(self):
overridden in stoqlib.gui.dialogs.initialstockdialog.InitialStockDialog, stoqlib.gui.dialogs.openinventorydialog.OpenInventoryDialog, stoqlib.gui.dialogs.paymentadditiondialog.BasePaymentAddition, stoqlib.gui.dialogs.paymentchangedialog.PaymentDueDateChangeDialog, stoqlib.gui.dialogs.productadjustmentdialog.AdjustmentDialog, stoqlib.gui.dialogs.productadjustmentdialog.ProductsAdjustmentDialog, stoqlib.gui.dialogs.productcountingdialog.ProductCountingDialog, stoqlib.gui.dialogs.productretention.ProductRetentionDialog, stoqlib.gui.dialogs.quotedialog.QuoteFillingDialog, stoqlib.gui.editors.addresseditor.AddressEditor, stoqlib.gui.editors.categoryeditor.BaseSellableCategoryEditor, stoqlib.gui.editors.categoryeditor.SellableCategoryEditor, stoqlib.gui.editors.deviceseditor.DeviceSettingsEditor, stoqlib.gui.editors.invoiceeditor.InvoiceLayoutEditor, stoqlib.gui.editors.invoiceeditor.InvoicePrinterEditor, stoqlib.gui.editors.invoiceeditor.SaleInvoicePrinterDialog, stoqlib.gui.editors.parameterseditor.SystemParameterEditor, stoqlib.gui.editors.paymentcategoryeditor.PaymentCategoryEditor, stoqlib.gui.editors.producteditor.ProductComponentSlave, stoqlib.gui.editors.producteditor.ProductEditor, stoqlib.gui.editors.sellableeditor.SellablePriceEditor, stoqlib.gui.editors.sellableeditor.SellableTaxConstantEditor, stoqlib.gui.editors.stationeditor.StationEditor, stoqlib.gui.editors.tilleditor.CashAdvanceEditor, stoqlib.gui.editors.tilleditor.CashInEditor, stoqlib.gui.editors.tilleditor.CashOutEditor, stoqlib.gui.editors.tilleditor.TillClosingEditor, stoqlib.gui.editors.tilleditor.TillOpeningEditor, stoqlib.gui.slaves.employeeslave.EmployeeRoleSlave, stoqlib.gui.slaves.installmentslave._InstallmentConfirmationSlave, stoqlib.gui.slaves.paymentslave._MultipleMethodEditor, stoqlib.gui.slaves.userslave.PasswordEditor, stoqlib.gui.slaves.userslave.UserDetailsSlave, stoqlib.gui.templates.companytemplate.CompanyEditorTemplate, stoqlib.gui.templates.individualtemplate._IndividualDetailsSlave, stoqlib.gui.templates.individualtemplate.IndividualEditorTemplate, stoqlib.gui.templates.persontemplate._PersonEditorTemplate, stoqlib.gui.templates.persontemplate.BasePersonRoleEditor
This is a hook method which must be redefined when some action needs to be executed when confirming in the dialog.
def update_visual_mode(self):
This method must be overwritten on child if some addition task in visual mode are needed
def validate_confirm(self):
Must be redefined by childs and will perform some validations after the click of ok_button. It is interesting to use with some special validators that provide some tasks over more than one widget value
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.