Ignore:
Timestamp:
27 May 2015, 15:26:26 (10 years ago)
Author:
Henrik Bettermann
Message:

Add Payment class attribute created_online to mark payment tickets
which are added online and not by import. This attribute is needed in
custom packages when sending data to payment gateways.

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

Legend:

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

    r12568 r13005  
    4747    """
    4848    p_id = Attribute('Payment identifier')
     49    created_online = Attribute('True if not imported')
    4950
    5051    p_category = schema.Choice(
  • main/waeup.kofa/trunk/src/waeup/kofa/payments/payment.py

    r12894 r13005  
    4444    logger_format_str = '"%(asctime)s","%(user)s",%(message)s'
    4545
    46     #def logger_info(self, comment=None):
    47     #    """Get the logger's info method.
    48     #    """
    49     #    self.logger.info('%s' % comment)
    50     #    return
     46    created_online = False
    5147
    5248    def __init__(self):
  • main/waeup.kofa/trunk/src/waeup/kofa/payments/tests.py

    r9469 r13005  
    2626from waeup.kofa.testing import (FunctionalLayer, FunctionalTestCase)
    2727
    28 class PaymentsContainerTestCase(FunctionalTestCase):
     28class PaymentsTestCase(FunctionalTestCase):
    2929
    3030    layer = FunctionalLayer
     
    5757        self.assertRaises(
    5858            NotImplementedError, container.clear)
     59        # created_online is always False
     60        payment = OnlinePayment()
     61        self.assertEqual(payment.created_online, False)
     62        return
Note: See TracChangeset for help on using the changeset viewer.