Changeset 8092


Ignore:
Timestamp:
10 Apr 2012, 12:24:06 (13 years ago)
Author:
Henrik Bettermann
Message:

Remove Uniben logo from base package. Let's user WAeUP logos instead (to be added).

Location:
main/waeup.kofa/trunk/src/waeup/kofa/browser
Files:
2 deleted
1 edited

Legend:

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

    • Property svn:keywords set to Id
    r8091 r8092  
    8080    grok.implements(IPDFCreator)
    8181
    82     header_logo_path = os.path.join(
    83         os.path.dirname(__file__), 'static', 'pdf_logo.jpg')
    84     watermark_path = os.path.join(
    85         os.path.dirname(__file__), 'static', 'pdf_watermark.jpg')
     82    watermark_path = None
     83    header_logo_path = None
     84    watermark_pos = [0, 0]
     85    logo_pos = [0, 0, 0]
    8686
    8787    @classmethod
     
    238238        if self.watermark_path is not None:
    239239            canvas.saveState()
    240             canvas.drawImage(self.watermark_path, 26, 100)
     240            canvas.drawImage(self.watermark_path,
     241                self.watermark_pos[0], self.watermark_pos[1])
    241242            canvas.restoreState()
    242243
     
    250251        canvas.line(1.5*cm,height-1.9*cm,width-1.5*cm,height-1.7*cm)
    251252        if self.header_logo_path is not None:
    252             canvas.drawImage(self.header_logo_path, 507, 170, width=40,
    253                              preserveAspectRatio=True, anchor='ne')
     253            canvas.drawImage(self.header_logo_path,
     254                self.logo_pos[0], self.logo_pos[1], width=self.logo_pos[2],
     255                preserveAspectRatio=True, anchor='ne')
    254256
    255257        # Title
Note: See TracChangeset for help on using the changeset viewer.