Class s.g.s.p.BasePaymentMethodSlave(BaseEditorSlave):

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

Known subclasses: stoqlib.gui.slaves.paymentslave.BillMethodSlave, stoqlib.gui.slaves.paymentslave.CheckMethodSlave, stoqlib.gui.slaves.paymentslave.MoneyMethodSlave, stoqlib.gui.slaves.paymentslave.StoreCreditMethodSlave

A base payment method slave for Bill and Check methods.
Method __init__ A base class for editor slaves inheritance
Method _refresh_next Undocumented
Method update_view Undocumented
Method _setup_widgets Undocumented
Method get_created_adapted_payments Undocumented
Method _get_total_amount Returns the order total amount
Method _get_payment_method_iface Undocumented
Method _setup_payments Undocumented
Method fill_slave_list Undocumented
Method get_slave_by_adapted_payment Undocumented
Method get_interest_total Undocumented
Method get_extra_slave_args This method can be redefined in child when extra parameters needs
Method get_payment_slave Undocumented
Method update_installments_number Undocumented
Method finish Undocumented
Method setup_proxies A subclass can override this
Method create_model Creates a new model for the editor.
Method on_installments_number__changed Undocumented
Method on_first_duedate__validate Undocumented
Method on_intervals__value_changed Undocumented
Method on_interval_type_combo__changed Undocumented
Method on_reset_button__clicked Undocumented
Method on_intervals__validation_changed Undocumented
Method on_first_duedate__validation_changed Undocumented
Method on_installments_number__validation_changed Undocumented
Method _on_slave__paymentvalue_changed Undocumented
Method _on_slave__duedate_validate Undocumented
Method _on_payment_list__remove_item Undocumented

Inherited from BaseEditorSlave:

Method _setup_visual_mode Undocumented
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, wizard, parent, conn, order_obj, payment_method, outstanding_value=currency(0)):
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 _refresh_next(self, validation_ok=True):
Undocumented
def update_view(self):
Undocumented
def _setup_widgets(self):
Undocumented
def get_created_adapted_payments(self):
Undocumented
def _get_total_amount(self):
Returns the order total amount
def _get_payment_method_iface(self):
Undocumented
def _setup_payments(self):
Undocumented
def fill_slave_list(self, adapted_payments):
Undocumented
def get_slave_by_adapted_payment(self, adapted_payment):
Undocumented
def get_interest_total(self):
Undocumented
def get_extra_slave_args(self):
This method can be redefined in child when extra parameters needs to be passed to the slave class. This method must return always a list with the parameters.
def get_payment_slave(self, model=None):
Undocumented
def update_installments_number(self, *args):
Undocumented
def finish(self):
Undocumented
def setup_proxies(self):
A subclass can override this
def create_model(self, conn):
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 on_installments_number__changed(self, proxyspinbutton):
Undocumented
def on_first_duedate__validate(self, widget, value):
Undocumented
def on_intervals__value_changed(self, *args):
Undocumented
def on_interval_type_combo__changed(self, *args):
Undocumented
def on_reset_button__clicked(self, *args):
Undocumented
def on_intervals__validation_changed(self, widget, is_valid):
Undocumented
def on_first_duedate__validation_changed(self, widget, is_valid):
Undocumented
def on_installments_number__validation_changed(self, widget, is_valid):
Undocumented
def _on_slave__paymentvalue_changed(self, slave):
Undocumented
def _on_slave__duedate_validate(self, slave):
Undocumented
def _on_payment_list__remove_item(self, payment_list, slave):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.