- Timestamp:
- 14 Jun 2012, 08:07:41 (12 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/main/waeup.uniben/trunk/src/waeup/uniben merged eligible /main/waeup.sirp/branches/uli-studentpw/src/waeup/fceokene 6703-6755
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/browser.py
r8599 r8722 30 30 StudentBaseEditFormPage, StudentPersonalEditFormPage, 31 31 OnlinePaymentDisplayFormPage, OnlinePaymentAddFormPage, 32 OnlinePaymentBreadcrumb, ExportPDFPaymentSlipPage) 32 OnlinePaymentBreadcrumb, ExportPDFPaymentSlipPage, 33 StudentFilesUploadPage, emit_lock_message) 33 34 from waeup.kofa.students.viewlets import ( 34 PaymentReceiptActionButton )35 PaymentReceiptActionButton, StudentPassportActionButton) 35 36 from waeup.fceokene.students.interfaces import ( 36 37 ICustomStudentBase, ICustomStudent, ICustomStudentPersonal, … … 39 40 ) 40 41 from waeup.fceokene.interfaces import MessageFactory as _ 42 from waeup.kofa.students.workflow import ADMITTED 41 43 42 44 #class RequestCallbackActionButton(RequestCallbackActionButton): … … 166 168 form_fields[ 167 169 '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)]170 #grok.template('payment_view') 171 172 #@property 173 #def transaction_code(self): 174 # tcode = self.context.p_id 175 # return tcode[len(tcode)-8:len(tcode)] 174 176 175 177 class CustomOnlinePaymentAddFormPage(OnlinePaymentAddFormPage): … … 199 201 form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 200 202 form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le') 203 204 # @property 205 # def note(self): 206 # tcode = self.context.p_id 207 # tcode = tcode[len(tcode)-8:len(tcode)] 208 # amount = self.context.amount_auth 209 # note = translate(_( 210 # u"""<br /><br /><br /> 211 #The tranzaction code is <strong>${a}</strong>.""", 212 # mapping = {'a':tcode})) 213 # return note 214 215 class StudentPassportActionButton(StudentPassportActionButton): 201 216 202 217 @property … … 210 225 mapping = {'a':tcode})) 211 226 return note 227 def target_url(self): 228 slip = getUtility(IExtFileStore).getFileByContext( 229 self.context, 'application_slip') 230 if self.context.state != ADMITTED or slip is not None: 231 return '' 232 return self.view.url(self.view.context, self.target) 233 234 class CustomStudentFilesUploadPage(StudentFilesUploadPage): 235 """ View to upload passport picture. 236 237 Students are not allowed to change the picture if they 238 passed the regular Kofa application. 239 """ 240 241 def update(self): 242 slip = getUtility(IExtFileStore).getFileByContext( 243 self.context, 'application_slip') 244 if self.context.state != ADMITTED or slip is not None: 245 emit_lock_message(self) 246 return 247 super(StudentFilesUploadPage, self).update() 248 return
Note: See TracChangeset for help on using the changeset viewer.