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

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

A base payment method slave for card and finance methods. Available slaves are: CardMethodSlave
Method __init__ A base class for editor slaves inheritance
Method finish Undocumented
Method update_view Undocumented
Method setup_proxies A subclass can override this
Method create_model Creates a new model for the editor.
Method _get_total_amount Undocumented
Method _setup_widgets Undocumented
Method _add_card_type Undocumented
Method _on_card_type_radio_toggled Undocumented
Method _refresh_next Undocumented
Method _setup_max_installments Undocumented
Method _setup_payments Undocumented
Method _get_credit_providers Undocumented
Method on_credit_provider__changed 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, sale_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 finish(self):
Undocumented
def update_view(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 _get_total_amount(self):
Undocumented
def _setup_widgets(self):
Undocumented
def _add_card_type(self, name, payment_type):
Undocumented
def _on_card_type_radio_toggled(self, radio):
Undocumented
def _refresh_next(self, validation_ok=True):
Undocumented
def _setup_max_installments(self):
Undocumented
def _setup_payments(self):
Undocumented
def _get_credit_providers(self):
Undocumented
def on_credit_provider__changed(self, combo):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.