[POS-commit] r3240 - stoqlib/trunk/stoqlib/gui/wizards
Evandro Vale Miquelito
evandro at async.com.br
Thu Apr 6 12:04:56 BRT 2006
Author: evandro
Date: Thu Apr 6 12:04:56 2006
New Revision: 3240
Modified:
stoqlib/trunk/stoqlib/gui/wizards/paymentmethod.py
Log:
Using the rigth wizard step type
Modified: stoqlib/trunk/stoqlib/gui/wizards/paymentmethod.py
==============================================================================
--- stoqlib/trunk/stoqlib/gui/wizards/paymentmethod.py (original)
+++ stoqlib/trunk/stoqlib/gui/wizards/paymentmethod.py Thu Apr 6 12:04:56 2006
@@ -22,7 +22,7 @@
## Author(s): Evandro Vale Miquelito <evandro at async.com.br>
##
##
-""" Payment method management wizards"""
+"""Payment method management wizards"""
import decimal
@@ -30,7 +30,7 @@
from kiwi.argcheck import argcheck
from sqlobject.dbconnection import Transaction
-from stoqlib.gui.base.wizards import BaseWizardStep, BaseWizard
+from stoqlib.gui.base.wizards import WizardEditorStep, BaseWizard
from stoqlib.gui.slaves.paymentmethod import InstallmentsNumberSettingsSlave
from stoqlib.domain.person import Person
from stoqlib.domain.interfaces import ICreditProvider
@@ -52,13 +52,13 @@
#
-class AbstractCreditCardStep(BaseWizardStep):
+class AbstractCreditCardStep(WizardEditorStep):
gladefile = None
proxy_widgets = None
def __init__(self, conn, wizard, model, previous):
self.model_type = type(model)
- BaseWizardStep.__init__(self, conn, wizard, model, previous)
+ WizardEditorStep.__init__(self, conn, wizard, model, previous)
#
# WizardStep hooks
@@ -104,7 +104,7 @@
self.add_proxy(self.model, DebitCardDetailsStep.proxy_widgets)
-class PMDetailsGeneralDataStep(BaseWizardStep):
+class PMDetailsGeneralDataStep(WizardEditorStep):
gladefile = 'PMDetailsGeneralDataStep'
model_type = None
general_widgets = ('destination',
@@ -114,7 +114,7 @@
def __init__(self, conn, wizard, model):
self.model_type = type(model)
- BaseWizardStep.__init__(self, conn, wizard, model)
+ WizardEditorStep.__init__(self, conn, wizard, model)
if self.wizard.edit_mode:
self.payment_type.set_sensitive(False)
More information about the POS-commit
mailing list