Changeset 8420 for main/waeup.kofa/trunk/src/waeup/kofa/payments
- Timestamp:
- 11 May 2012, 14:18:47 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/payments
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/payments/interfaces.py
r8260 r8420 130 130 readonly = False, 131 131 ) 132 133 def approve(): 134 "Approve an online payment and set to paid." -
main/waeup.kofa/trunk/src/waeup/kofa/payments/payment.py
r8194 r8420 24 24 from zope.component import getUtility 25 25 from waeup.kofa.interfaces import IKofaUtils 26 from waeup.kofa.interfaces import MessageFactory as _ 26 27 from waeup.kofa.payments.interfaces import ( 27 28 IPayment, ISCPayment, IOnlinePayment, 28 29 payment_states, payment_categories) 29 from waeup.kofa.utils.helpers import attrs_to_fields 30 from waeup.kofa.utils.helpers import attrs_to_fields, get_current_principal 30 31 31 32 class Payment(grok.Container): … … 50 51 return payment_categories.getTermByToken(self.p_category).title 51 52 53 # not used 52 54 class SCPayment(Payment): 53 55 """This is a scratch card payment. … … 74 76 return 75 77 78 def approve(self): 79 "Approve online payment and set to paid." 80 self.r_amount_approved = self.amount_auth 81 self.r_code = u'AP' 82 self.p_state = 'paid' 83 #user = get_current_principal() 84 self.payment_date = datetime.utcnow() 85 return 86 76 87 OnlinePayment = attrs_to_fields(OnlinePayment)
Note: See TracChangeset for help on using the changeset viewer.