Class s.g.e.s.SellableEditor(BaseEditor):

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

Known subclasses: stoqlib.gui.editors.producteditor.ProductEditor, stoqlib.gui.editors.serviceeditor.ServiceEditor

This is a base class for ProductEditor and ServiceEditor and should be used when editing sellable objects. Note that sellable objects are instances inherited by Sellable.
Method __init__ A base class for editor slaves inheritance
Method _on_delete_button__activate Undocumented
Method add_extra_tab Undocumented
Method set_widget_formats Undocumented
Method edit_sale_price Undocumented
Method setup_widgets Undocumented
Method ensure_sellable_unit Undocumented
Method update_unit_entry Undocumented
Method update_requires_weighing_label Undocumented
Method _update_tax_value Undocumented
Method get_taxes Subclasses may override this method to provide a custom
Method setup_sellable_combos Undocumented
Method setup_unit_combo Undocumented
Method setup_tax_constants Undocumented
Method setup_proxies A subclass can override this
Method on_tax_constant__changed Undocumented
Method on_unit_combo__changed Undocumented
Method on_sale_price_button__clicked Undocumented
Method validate_confirm Must be redefined by childs and will perform some validations
Method on_code__validate Undocumented
Method on_barcode__validate Undocumented
Method on_price__validate Undocumented
Method on_cost__validate Undocumented
Method on_unit_entry__validate Undocumented
Method on_category_combo__content_changed 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 create_model Creates a new model for the editor.
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
def __init__(self, conn, model=None):
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 _on_delete_button__activate(self, button):
Undocumented
def add_extra_tab(self, tabname, tabslave):
Undocumented
def set_widget_formats(self):
Undocumented
def edit_sale_price(self):
Undocumented
def setup_widgets(self):
Undocumented
def ensure_sellable_unit(self):
Undocumented
def update_unit_entry(self):
Undocumented
def update_requires_weighing_label(self):
Undocumented
def _update_tax_value(self):
Undocumented
def get_taxes(self):
Subclasses may override this method to provide a custom tax selection.
Returnsa list of tuples containing the tax description and a stoqlib.domain.sellable.SellableTaxConstant object.
def setup_sellable_combos(self):
Undocumented
def setup_unit_combo(self):
Undocumented
def setup_tax_constants(self):
Undocumented
def setup_proxies(self):
A subclass can override this
def on_tax_constant__changed(self, combo):
Undocumented
def on_unit_combo__changed(self, combo):
Undocumented
def on_sale_price_button__clicked(self, button):
Undocumented
def validate_confirm(self, *args):
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
def on_code__validate(self, widget, value):
Undocumented
def on_barcode__validate(self, widget, value):
Undocumented
def on_price__validate(self, entry, value):
Undocumented
def on_cost__validate(self, entry, value):
Undocumented
def on_unit_entry__validate(self, entry, value):
Undocumented
def on_category_combo__content_changed(self, widget):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.