Ignore:
Timestamp:
8 Dec 2011, 08:38:02 (13 years ago)
Author:
Henrik Bettermann
Message:

Export course registration slip on two pages.
Set columns width of each column.
Show semester on all course registration view.

ToDo?: Sort course tickets by semester on course registration slip.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r7304 r7310  
    548548        return students_utils.renderPDF(
    549549            self,'Clearance', 'clearance.pdf',
    550             self.context.getStudent, studentview)
     550            self.context.getStudent(), studentview)
    551551
    552552class StudentClearanceManageFormPage(WAeUPEditFormPage):
     
    781781    pnav = 4
    782782
     783    def update(self):
     784        super(StudyLevelDisplayFormPage, self).update()
     785        datatable.need()
     786        return
     787
    783788    @property
    784789    def title(self):
     
    825830        return students_utils.renderPDF(
    826831            self,'Course Registration', 'course_registration.pdf',
    827             self.context.getStudent, studentview,
    828             tableheader=[('Code','code'), ('Title','title'),
    829                          ('Department','dcode'), ('Faculty','fcode'),
    830                          ('Credits', 'credits'),
    831                          ('Mandatory', 'core_or_elective'),
    832                          ('Score', 'score'),('Auto', 'automatic')
     832            self.context.getStudent(), studentview,
     833            tableheader=[('Sem.','semester', 1.5),('Code','code', 2.5),
     834                         ('Title','title', 5),
     835                         ('Dept.','dcode', 1.5), ('Faculty','fcode', 1.5),
     836                         ('Cred.', 'credits', 1.5),
     837                         ('Mand.', 'core_or_elective', 1.5),
     838                         ('Score', 'score', 1.5),('Auto', 'automatic', 1.5)
    833839                         ],
    834840            tabledata=self.context.values())
     
    12631269        students_utils = getUtility(IStudentsUtils)
    12641270        return students_utils.renderPDF(self,'Payment', 'payment_receipt.pdf',
    1265             self.context.getStudent, studentview)
     1271            self.context.getStudent(), studentview)
    12661272
    12671273# We don't need the display form page yet
     
    14841490        return students_utils.renderPDF(
    14851491            self,'Bed Allocation', 'bed_allocation.pdf',
    1486             self.context.getStudent, studentview)
     1492            self.context.getStudent(), studentview)
    14871493
    14881494class RelocateStudentActionButton(ManageActionButton):
Note: See TracChangeset for help on using the changeset viewer.