Class s.g.w.a.SellableItemStep(WizardEditorStep):

Part of stoqlib.gui.wizards.abstractwizard View In Hierarchy

Known subclasses: stoqlib.gui.wizards.purchasewizard.PurchaseItemStep, stoqlib.gui.wizards.receivingwizard.ReceivingOrderProductStep, stoqlib.gui.wizards.salequotewizard.SaleQuoteItemStep, stoqlib.gui.wizards.stocktransferwizard.StockTransferProductStep

A wizard item step for sellable orders.

It defines the following:

Optionally buttons to modify the list

Method __init__ A base class for editor slaves inheritance
Method hide_add_button Hides the add button
Method hide_edit_button Hides the edit button
Method get_quantity Returns the quantity of the current model or 1 if there is no model
Method get_model_item_by_sellable Returns a model instance by the given sellable.
Method setup_sellable_entry Undocumented
Method get_order_item Undocumented
Method get_saved_items Undocumented
Method get_columns Undocumented
Method on_product_button__clicked Undocumented
Method sellable_selected This will be called when a sellable is selected in the combo.
Method validate Undocumented
Method next_step Undocumented
Method post_init Undocumented
Method setup_proxies A subclass can override this
Method setup_slaves A subclass can override this
Method _setup_summary Undocumented
Method _refresh_next Undocumented
Method _add_sellable Undocumented
Method _update_list Undocumented
Method _reset_sellable Undocumented
Method _update_total Undocumented
Method _on_list_slave__before_delete_items Undocumented
Method _on_list_slave__after_delete_items Undocumented
Method _on_list_slave__add_item Undocumented
Method _on_list_slave__edit_item Undocumented
Method on_add_sellable_button__clicked Undocumented
Method on_sellable__activate Undocumented
Method on_sellable__content_changed Undocumented
Method on_quantity__activate Undocumented
Method on_quantity__validate Undocumented
Method on_cost__activate Undocumented
Method on_cost__validate Undocumented

Inherited from BaseEditorSlave (via WizardEditorStep):

Method _setup_visual_mode Undocumented
Method create_model Creates a new model for the editor.
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, wizard, previous, conn, model):
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 hide_add_button(self):
Hides the add button
def hide_edit_button(self):
Hides the edit button
def get_quantity(self):
Returns the quantity of the current model or 1 if there is no model
Returnsthe quantity
def get_model_item_by_sellable(self, sellable):
Returns a model instance by the given sellable.
Returnsa model instance or None if we could not find the model.
def setup_sellable_entry(self):
Undocumented
def get_order_item(self):
Undocumented
def get_saved_items(self):
Undocumented
def get_columns(self):
Undocumented
def on_product_button__clicked(self, button):
Undocumented
def sellable_selected(self, sellable):
This will be called when a sellable is selected in the combo. It can be overriden in a subclass if they wish to do additional logic at that point
Parameterssellablethe selected sellable
def validate(self, value):
Undocumented
def next_step(self):
Undocumented
def post_init(self):
Undocumented
def setup_proxies(self):
A subclass can override this
def setup_slaves(self):
A subclass can override this
def _setup_summary(self):
Undocumented
def _refresh_next(self):
Undocumented
def _add_sellable(self):
Undocumented
def _update_list(self, sellable):
Undocumented
def _reset_sellable(self):
Undocumented
def _update_total(self):
Undocumented
def _on_list_slave__before_delete_items(self, slave, items):
Undocumented
def _on_list_slave__after_delete_items(self, slave):
Undocumented
def _on_list_slave__add_item(self, slave, item):
Undocumented
def _on_list_slave__edit_item(self, slave, item):
Undocumented
def on_add_sellable_button__clicked(self, button):
Undocumented
def on_sellable__activate(self, combo):
Undocumented
def on_sellable__content_changed(self, combo):
Undocumented
def on_quantity__activate(self, entry):
Undocumented
def on_quantity__validate(self, entry, value):
Undocumented
def on_cost__activate(self, entry):
Undocumented
def on_cost__validate(self, widget, value):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.