[POS-commit] r1962 - in stoq/trunk/stoq/domain: . payment
Bruno Rafael Garcia
brg at async.com.br
Thu Dec 22 16:16:23 BRST 2005
Author: brg
Date: Thu Dec 22 16:16:23 2005
New Revision: 1962
Modified:
stoq/trunk/stoq/domain/payment/base.py
stoq/trunk/stoq/domain/payment/methods.py
stoq/trunk/stoq/domain/tables.py
Log:
Class renamed in coherent way
Modified: stoq/trunk/stoq/domain/payment/base.py
==============================================================================
--- stoq/trunk/stoq/domain/payment/base.py (original)
+++ stoq/trunk/stoq/domain/payment/base.py Thu Dec 22 16:16:23 2005
@@ -93,7 +93,7 @@
description = StringCol(default=None)
payment_number = StringCol(default=None)
- method = ForeignKey('PaymentMethodAdapter')
+ method = ForeignKey('AbstractPaymentMethodAdapter')
method_details = ForeignKey('PaymentMethodDetails', default=None)
group = ForeignKey('AbstractPaymentGroup')
destination = ForeignKey('PaymentDestination')
Modified: stoq/trunk/stoq/domain/payment/methods.py
==============================================================================
--- stoq/trunk/stoq/domain/payment/methods.py (original)
+++ stoq/trunk/stoq/domain/payment/methods.py Thu Dec 22 16:16:23 2005
@@ -162,7 +162,7 @@
#
-class PaymentMethodAdapter(InheritableModelAdapter):
+class AbstractPaymentMethodAdapter(InheritableModelAdapter):
implements(IActive)
description = None
@@ -266,7 +266,7 @@
return payment_group.get_thirdparty()
-class PMAdaptToMoneyPM(PaymentMethodAdapter):
+class PMAdaptToMoneyPM(AbstractPaymentMethodAdapter):
implements(IMoneyPM, IActive)
description = _('Money')
@@ -315,7 +315,7 @@
PaymentMethod.registerFacet(PMAdaptToMoneyPM, IMoneyPM)
-class AbstractCheckBillAdapter(PaymentMethodAdapter):
+class AbstractCheckBillAdapter(AbstractPaymentMethodAdapter):
"""Base payment method adapter class for for Check and Bill.
B{Importante attributes}:
@@ -535,7 +535,7 @@
PaymentMethod.registerFacet(PMAdaptToBillPM, IBillPM)
-class PMAdaptToCardPM(PaymentMethodAdapter):
+class PMAdaptToCardPM(AbstractPaymentMethodAdapter):
implements(ICardPM, IActive)
description = _('Card')
@@ -565,7 +565,7 @@
PaymentMethod.registerFacet(PMAdaptToCardPM, ICardPM)
-class PMAdaptToFinancePM(PaymentMethodAdapter):
+class PMAdaptToFinancePM(AbstractPaymentMethodAdapter):
implements(IFinancePM, IActive)
description = _('Finance')
Modified: stoq/trunk/stoq/domain/tables.py
==============================================================================
--- stoq/trunk/stoq/domain/tables.py (original)
+++ stoq/trunk/stoq/domain/tables.py Thu Dec 22 16:16:23 2005
@@ -97,7 +97,7 @@
# here since the class Payment needs one of its classes. This will
# be fixed in bug 2036.
('stoq.domain.payment.methods', ("PaymentMethod",
- "PaymentMethodAdapter",
+ "AbstractPaymentMethodAdapter",
"PaymentMethodDetails",
)),
('stoq.domain.renegotiation', ("RenegotiationData",
More information about the POS-commit
mailing list