Changeset 7811 for main/waeup.kofa/trunk/src/waeup/kofa/payments
- Timestamp:
- 8 Mar 2012, 19:00:51 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/payments
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/payments/__init__.py
r6864 r7811 2 2 """ 3 3 # Make this a package. 4 from waeup. sirp.payments.container import PaymentsContainer5 from waeup. sirp.payments.payment import SCPayment, OnlinePayment4 from waeup.kofa.payments.container import PaymentsContainer 5 from waeup.kofa.payments.payment import SCPayment, OnlinePayment 6 6 7 7 __all__ = [ -
main/waeup.kofa/trunk/src/waeup/kofa/payments/container.py
r7195 r7811 21 21 import grok 22 22 from grok import index 23 from waeup. sirp.payments.interfaces import IPaymentsContainer24 from waeup. sirp.utils.helpers import attrs_to_fields23 from waeup.kofa.payments.interfaces import IPaymentsContainer 24 from waeup.kofa.utils.helpers import attrs_to_fields 25 25 26 26 class PaymentsContainer(grok.Container): -
main/waeup.kofa/trunk/src/waeup/kofa/payments/interfaces.py
r7717 r7811 18 18 from zope.interface import Attribute 19 19 from zope import schema 20 from waeup. sirp.interfaces import ISIRPObject, SimpleSIRPVocabulary21 from waeup. sirp.interfaces import MessageFactory as _20 from waeup.kofa.interfaces import IKOFAObject, SimpleKOFAVocabulary 21 from waeup.kofa.interfaces import MessageFactory as _ 22 22 23 payment_states = Simple SIRPVocabulary(23 payment_states = SimpleKOFAVocabulary( 24 24 (_('Not yet paid'),'unpaid'), 25 25 (_('Paid'),'paid'), … … 27 27 ) 28 28 29 payment_categories = Simple SIRPVocabulary(29 payment_categories = SimpleKOFAVocabulary( 30 30 (_('School Fee'),'schoolfee'), 31 31 (_('Clearance'),'clearance'), … … 37 37 ) 38 38 39 class IPaymentsContainer(I SIRPObject):39 class IPaymentsContainer(IKOFAObject): 40 40 """A container for all kind of payment objects. 41 41 42 42 """ 43 43 44 class IPayment(I SIRPObject):44 class IPayment(IKOFAObject): 45 45 """A base representation of payments. 46 46 -
main/waeup.kofa/trunk/src/waeup/kofa/payments/payment.py
r7627 r7811 22 22 from datetime import datetime 23 23 from grok import index 24 from waeup. sirp.payments.interfaces import (24 from waeup.kofa.payments.interfaces import ( 25 25 IPayment, ISCPayment, IOnlinePayment, 26 26 payment_states, payment_categories) 27 from waeup. sirp.utils.helpers import attrs_to_fields27 from waeup.kofa.utils.helpers import attrs_to_fields 28 28 29 29 class Payment(grok.Container): -
main/waeup.kofa/trunk/src/waeup/kofa/payments/tests.py
r7195 r7811 20 20 """ 21 21 from zope.interface.verify import verifyClass, verifyObject 22 from waeup. sirp.payments.interfaces import (22 from waeup.kofa.payments.interfaces import ( 23 23 IPaymentsContainer, ISCPayment, IOnlinePayment) 24 from waeup. sirp.payments.container import PaymentsContainer25 from waeup. sirp.payments.payment import (24 from waeup.kofa.payments.container import PaymentsContainer 25 from waeup.kofa.payments.payment import ( 26 26 SCPayment, OnlinePayment) 27 from waeup. sirp.testing import (FunctionalLayer, FunctionalTestCase)27 from waeup.kofa.testing import (FunctionalLayer, FunctionalTestCase) 28 28 29 29 class PaymentsContainerTestCase(FunctionalTestCase):
Note: See TracChangeset for help on using the changeset viewer.