Ignore:
Timestamp:
6 Nov 2012, 10:54:46 (12 years ago)
Author:
uli
Message:

Henriks wishlist.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

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

    r9553 r9555  
    639639        return
    640640
    641     def _sigInFooter(self):
     641    def _sigsInFooter(self):
    642642        isStudent = getattr(
    643643            self.request.principal, 'user_type', None) == 'student'
    644644        if not isStudent and self.context.state in (CLEARED, ):
    645             return True
     645            return (_('Date, Student Signature'),
     646                    _('Date, Clearance Officer Signature'),
     647                    )
    646648        return False
    647649
     
    653655            self, 'clearance_slip.pdf',
    654656            self.context.student, studentview, signatures=self._signatures(),
    655             sig_in_footer=self._sigInFooter())
     657            sigs_in_footer=self._sigsInFooter())
    656658
    657659class StudentClearanceManageFormPage(KofaEditFormPage):
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r9550 r9555  
    506506    def renderPDF(self, view, filename='slip.pdf', student=None,
    507507                  studentview=None, tableheader=None, tabledata=None,
    508                   note=None, signatures=None, sig_in_footer=False,
     508                  note=None, signatures=None, sigs_in_footer=(),
    509509                  show_scans=True):
    510510        """Render pdf slips for various pages.
     
    559559
    560560        # Insert signatures
    561         if signatures and not sig_in_footer:
     561        if signatures and not sigs_in_footer:
    562562            data.append(Spacer(1, 20))
    563563            signaturetable = get_signature_table(signatures)
     
    569569            pdf_stream = creator.create_pdf(
    570570                data, None, doc_title, author=author, footer=footer_text,
    571                 note=note, sig_in_footer=sig_in_footer)
     571                note=note, sigs_in_footer=sigs_in_footer)
    572572        except IOError:
    573573            view.flash('Error in image file.')
Note: See TracChangeset for help on using the changeset viewer.