Changeset 9469


Ignore:
Timestamp:
30 Oct 2012, 17:49:17 (12 years ago)
Author:
Henrik Bettermann
Message:

Remove SCPayment components.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/payments
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/payments/__init__.py

    r7811 r9469  
    33# Make this a package.
    44from waeup.kofa.payments.container import PaymentsContainer
    5 from waeup.kofa.payments.payment import SCPayment, OnlinePayment
     5from waeup.kofa.payments.payment import OnlinePayment
    66
    77__all__ = [
    88    'PaymentsContainer',
    9     'SCPayment',
    109    'OnlinePayment',
    1110    ]
  • main/waeup.kofa/trunk/src/waeup/kofa/payments/interfaces.py

    r9405 r9469  
    9292        )
    9393
    94 class ISCPayment(IPayment):
    95     """A scratch card payment.
    96 
    97     """
    98 
    99     p_code = schema.TextLine(
    100         title = _(u'Payment Access Code'),
    101         #default = u'Certificate XYZ',
    102         required = False,
    103         readonly = True,
    104         )
    105 
    10694class IOnlinePayment(IPayment):
    10795    """A payment via payment gateways.
  • main/waeup.kofa/trunk/src/waeup/kofa/payments/payment.py

    r9405 r9469  
    2727from waeup.kofa.interfaces import MessageFactory as _
    2828from waeup.kofa.payments.interfaces import (
    29     IPayment, ISCPayment, IOnlinePayment,
     29    IPayment, IOnlinePayment,
    3030    payment_states)
    3131from waeup.kofa.utils.helpers import attrs_to_fields, get_current_principal
     
    5252        utils = getUtility(IKofaUtils)
    5353        return utils.PAYMENT_CATEGORIES[self.p_category]
    54 
    55 # not used
    56 class SCPayment(Payment):
    57     """This is a scratch card payment.
    58     """
    59     grok.implements(ISCPayment)
    60     grok.provides(ISCPayment)
    61 
    62     def __init__(self):
    63         super(SCPayment, self).__init__()
    64         p_id = None
    65         return
    66 
    67 SCPayment = attrs_to_fields(SCPayment)
    6854
    6955class OnlinePayment(Payment):
  • main/waeup.kofa/trunk/src/waeup/kofa/payments/tests.py

    r7811 r9469  
    2121from zope.interface.verify import verifyClass, verifyObject
    2222from waeup.kofa.payments.interfaces import (
    23     IPaymentsContainer, ISCPayment, IOnlinePayment)
     23    IPaymentsContainer, IOnlinePayment)
    2424from waeup.kofa.payments.container import PaymentsContainer
    25 from waeup.kofa.payments.payment import (
    26     SCPayment, OnlinePayment)
     25from waeup.kofa.payments.payment import OnlinePayment
    2726from waeup.kofa.testing import (FunctionalLayer, FunctionalTestCase)
    2827
     
    4342        self.assertTrue(
    4443            verifyClass(
    45                 ISCPayment, SCPayment)
    46             )
    47         self.assertTrue(
    48             verifyClass(
    4944                IOnlinePayment, OnlinePayment)
    50             )
    51         self.assertTrue(
    52             verifyObject(
    53                 ISCPayment, SCPayment())
    5445            )
    5546        self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.