Changeset 11901 for main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
- Timestamp:
- 29 Oct 2014, 12:25:12 (10 years ago)
- Location:
- main/waeup.kwarapoly/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk
- Property svn:mergeinfo changed
/main/waeup.kwarapoly/branches/uli-crs-reg-slip (added) merged: 11898-11900
- Property svn:mergeinfo changed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
- Property svn:mergeinfo changed
/main/waeup.kwarapoly/branches/uli-crs-reg-slip/src/waeup/kwarapoly (added) merged: 11898-11900
- Property svn:mergeinfo changed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/browser.py
r11887 r11901 278 278 279 279 def _signatures(self): 280 """Signatures as inserted at document bottom. 281 282 As Kwarapoly requires a fancy 'certificate' there, the pre- 283 and post-fields of signatures are quite large and unusual 284 here. 285 286 This is also a workaround, as we cannot easily insert text 287 with signature fields in documents using reportlab platypus. 288 289 The signature boxes we return here contain context infos 290 (therefore this has to be a method) and return the following 291 layout: 292 293 +-----------------------------------------+ 294 | (Empty pre text) | 295 +-------------+---------------------------+ 296 |Date | Students Signature | 297 +-------------+---------------------------+ 298 | (Empty post text) | 299 +=========================================+ 300 | Certification | 301 +-------------+---------------------------+ 302 |Date | Director Signature, etc. | 303 +-------------+---------------------------+ 304 |NOTE: This form is the ... | 305 +-----------------------------------------+ 306 307 308 """ 280 309 return ( 281 [('I have selected the course on the advise of my Head of ' 282 'Department. <br>', _('Student\'s Signature'), '<br>')], 283 [('This student has satisfied the department\'s requirements. ' 284 'I recommend to approve the course registration. <br>', 285 _('Head of Department\'s Signature'), '<br>')], 286 [('', _('Principal Assistant Registrar\'s Signature'), '<br>')], 287 [('', _('Director\'s Signature'))] 310 [ 311 ('', _('Student\'s Signature'), ''), 312 ], 313 [(( 314 "<br/>" 315 + " " * 70 + 316 "<u><b><font size='14'>Certification</font></b></u><br/>" 317 "<br/><b><i>" 318 "This is to certify that " 319 "<font size='13'>" 320 + self.context.student.display_fullname + 321 "</font>" 322 " has paid the full School Fees, duly registered and " 323 "therfore, is cleared to sit for examination in the " 324 "courses listed above." 325 "</i></b><br/><br/>" 326 ), 327 "Institute Director\'s Signature and Official Stamp", 328 ( 329 "<b><u>NOTE:</u></b> This form is the property of " 330 "Kwara State Polytechnic, it is not transferable " 331 "and students must properly fill it, get it duly " 332 "endorsed and present it before they can be admitted " 333 "into Examination Venues." 334 )),] 288 335 ) 289 336 … … 321 368 (Signature, 'dummy', 3), 322 369 ]) 323 if len(self.label.split('\n')) == 3: 324 topMargin = 1.9 325 elif len(self.label.split('\n')) == 2: 326 topMargin = 1.7 327 else: 328 topMargin = 1.5 370 topMargin = 1.5 + (self.label.count('\n') * 0.2) 329 371 return students_utils.renderPDF( 330 372 self, 'course_registration_slip.pdf', … … 334 376 signatures=self._signatures(), 335 377 topMargin=topMargin, 336 omit_fields=self.omit_fields 378 omit_fields=self.omit_fields, 337 379 ) 338 380
Note: See TracChangeset for help on using the changeset viewer.