Class s.g.s.s.SaleDiscountSlave(BaseEditorSlave):

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

A slave for discounts management
Method __init__ A base class for editor slaves inheritance
Method setup_widgets Undocumented
Method update_widget_status Undocumented
Method update_sale_discount Undocumented
Method _validate_percentage Undocumented
Method set_max_discount Set the maximum percentage value for a discount.
Method setup_proxies A subclass can override this
Method on_discount_perc__validate Undocumented
Method on_discount_value__validate Undocumented
Method after_discount_perc__changed Undocumented
Method after_discount_value__changed Undocumented
Method on_discount_value_ck__toggled Undocumented

Inherited from BaseEditorSlave:

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
Method validate_confirm Must be redefined by childs and will perform some validations
def __init__(self, conn, model, model_type, 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_widgets(self):
Undocumented
def update_widget_status(self):
Undocumented
def update_sale_discount(self):
Undocumented
def _validate_percentage(self, value, type_text):
Undocumented
def set_max_discount(self, discount):
Set the maximum percentage value for a discount.
Parametersdiscountthe value for a discount. (type: int in absolute value like 3 )
def setup_proxies(self):
A subclass can override this
def on_discount_perc__validate(self, entry, value):
Undocumented
def on_discount_value__validate(self, entry, value):
Undocumented
@signal_block('discount_value.changed')
def after_discount_perc__changed(self, *args):
Undocumented
@signal_block('discount_perc.changed')
def after_discount_value__changed(self, *args):
Undocumented
def on_discount_value_ck__toggled(self, *args):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.