Changeset 8716 for main/waeup.uniben/trunk/src/waeup
- Timestamp:
- 14 Jun 2012, 06:19:53 (12 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py
r8668 r8716 154 154 form_fields[ 155 155 'payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 156 grok.template('payment_view')156 #grok.template('payment_view') 157 157 158 @property159 def transaction_code(self):160 tcode = self.context.p_id161 return tcode[len(tcode)-8:len(tcode)]158 #@property 159 #def transaction_code(self): 160 # tcode = self.context.p_id 161 # return tcode[len(tcode)-8:len(tcode)] 162 162 163 163 class CustomApplicationFeePaymentAddPage(ApplicationFeePaymentAddPage): … … 174 174 form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 175 175 176 @property177 def note(self):178 if self.context.p_state == 'paid':179 return None180 tcode = self.context.p_id181 tcode = tcode[len(tcode)-8:len(tcode)]182 amount = self.context.amount_auth183 note = translate(_(184 u"""<br /><br /><br />185 The tranzaction code is <strong>${a}</strong>.""",186 mapping = {'a':tcode}))187 return note176 # @property 177 # def note(self): 178 # if self.context.p_state == 'paid': 179 # return None 180 # tcode = self.context.p_id 181 # tcode = tcode[len(tcode)-8:len(tcode)] 182 # amount = self.context.amount_auth 183 # note = translate(_( 184 # u"""<br /><br /><br /> 185 #The tranzaction code is <strong>${a}</strong>.""", 186 # mapping = {'a':tcode})) 187 # return note 188 188 189 189 class CustomApplicantRegistrationPage(ApplicantRegistrationPage):
Note: See TracChangeset for help on using the changeset viewer.