Changeset 8711 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 13 Jun 2012, 13:58:05 (12 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py
r8567 r8711 149 149 form_fields[ 150 150 'payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 151 grok.template('payment_view')151 #grok.template('payment_view') 152 152 153 @property154 def transaction_code(self):155 tcode = self.context.p_id156 return tcode[len(tcode)-8:len(tcode)]153 #@property 154 #def transaction_code(self): 155 # tcode = self.context.p_id 156 # return tcode[len(tcode)-8:len(tcode)] 157 157 158 158 class CustomApplicationFeePaymentAddPage(ApplicationFeePaymentAddPage): … … 169 169 form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 170 170 171 @property172 def note(self):173 if self.context.p_state == 'paid':174 return None175 tcode = self.context.p_id176 tcode = tcode[len(tcode)-8:len(tcode)]177 amount = self.context.amount_auth178 note = translate(_(179 u"""<br /><br /><br />180 The tranzaction code is <strong>${a}</strong>.""",181 mapping = {'a':tcode}))182 return note171 # @property 172 # def note(self): 173 # if self.context.p_state == 'paid': 174 # return None 175 # tcode = self.context.p_id 176 # tcode = tcode[len(tcode)-8:len(tcode)] 177 # amount = self.context.amount_auth 178 # note = translate(_( 179 # u"""<br /><br /><br /> 180 #The tranzaction code is <strong>${a}</strong>.""", 181 # mapping = {'a':tcode})) 182 # return note -
main/waeup.aaue/trunk/src/waeup/aaue/students/browser.py
r8600 r8711 166 166 form_fields[ 167 167 'payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 168 grok.template('payment_view')169 170 @property171 def transaction_code(self):172 tcode = self.context.p_id173 return tcode[len(tcode)-8:len(tcode)]168 #grok.template('payment_view') 169 170 #@property 171 #def transaction_code(self): 172 # tcode = self.context.p_id 173 # return tcode[len(tcode)-8:len(tcode)] 174 174 175 175 class CustomOnlinePaymentAddFormPage(OnlinePaymentAddFormPage): … … 200 200 form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 201 201 202 @property203 def note(self):204 tcode = self.context.p_id205 tcode = tcode[len(tcode)-8:len(tcode)]206 amount = self.context.amount_auth207 note = translate(_(208 u"""<br /><br /><br />209 The tranzaction code for eTranzact payments is <strong>${a}</strong>.""",210 mapping = {'a':tcode}))211 return note202 # @property 203 # def note(self): 204 # tcode = self.context.p_id 205 # tcode = tcode[len(tcode)-8:len(tcode)] 206 # amount = self.context.amount_auth 207 # note = translate(_( 208 # u"""<br /><br /><br /> 209 #The tranzaction code for eTranzact payments is <strong>${a}</strong>.""", 210 # mapping = {'a':tcode})) 211 # return note
Note: See TracChangeset for help on using the changeset viewer.