- Timestamp:
- 20 Sep 2012, 08:22:52 (12 years ago)
- Location:
- main/waeup.kofa/branches/uli-async-update
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-async-update
- Property svn:mergeinfo changed
/main/waeup.kofa/trunk merged: 9172,9178,9180,9182-9184,9186-9189,9191-9204
- Property svn:mergeinfo changed
-
main/waeup.kofa/branches/uli-async-update/src/waeup/kofa/students/viewlets.py
r9169 r9208 150 150 151 151 class ContactActionButton(ManageActionButton): 152 grok.order( 4)152 grok.order(5) 153 153 grok.context(IStudent) 154 154 grok.view(StudentBaseDisplayFormPage) … … 166 166 target = 'manage_base' 167 167 168 class AdmissionSlipActionButton(ManageActionButton): 169 grok.order(4) 170 grok.context(IStudent) 171 grok.view(StudentBaseDisplayFormPage) 172 grok.require('waeup.viewStudent') 173 icon = 'actionicon_pdf.png' 174 text = _('Download admission letter') 175 target = 'admission_slip.pdf' 176 168 177 class StudentTransfernButton(ManageActionButton): 169 grok.order( 5)178 grok.order(6) 170 179 grok.context(IStudent) 171 180 grok.view(StudentBaseDisplayFormPage) … … 176 185 177 186 class StudentDeactivateActionButton(ManageActionButton): 178 grok.order( 6)187 grok.order(7) 179 188 grok.context(IStudent) 180 189 grok.view(StudentBaseDisplayFormPage) … … 196 205 197 206 class StudentActivateActionButton(ManageActionButton): 198 grok.order( 6)207 grok.order(7) 199 208 grok.context(IStudent) 200 209 grok.view(StudentBaseDisplayFormPage) … … 624 633 @property 625 634 def targets(self): 626 student _url = self.view.application_url() + (627 '/students/%s' % self.request.principal.id)628 #app_slip = getUtility(IExtFileStore).getFileByContext(629 # self.context.student, 'application_slip')635 student = grok.getSite()['students'][self.request.principal.id] 636 student_url = self.view.url(student) 637 app_slip = getUtility(IExtFileStore).getFileByContext( 638 student, 'application_slip') 630 639 targets = [] 631 #if app_slip:632 #targets = [{'url':student_url + '/application_slip', 'title':'Application Slip'},]640 if app_slip: 641 targets = [{'url':student_url + '/application_slip', 'title':'Application Slip'},] 633 642 targets += [ 634 643 {'url':student_url, 'title':'Base Data'},
Note: See TracChangeset for help on using the changeset viewer.