Changeset 3079 for pykota/trunk/bin

Show
Ignore:
Timestamp:
11/29/06 20:28:35 (18 years ago)
Author:
jerome
Message:

Now prepares datas for ReportLab? 2.x

Location:
pykota/trunk/bin
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkbanner

    r2909 r3079  
    121121        canvas.setFillColorRGB(r, g, b) 
    122122        message = "%s :" % _(label) 
    123         canvas.drawRightString(x, y, message) 
     123        canvas.drawRightString(x, y, self.userCharsetToUTF8(message)) 
    124124        canvas.setFont("Courier-Bold", size) 
    125125        (r, g, b) =  [ color + (savetoner * (1.0 - color)) for color in (1, 0, 0) ] # Red * savetoner 
    126126        canvas.setFillColorRGB(r, g, b) 
    127         canvas.drawString(x + 0.5*cm, y, value) 
     127        canvas.drawString(x + 0.5*cm, y, self.userCharsetToUTF8(value)) 
    128128        canvas.restoreState() 
    129129        return (size + 4) 
  • pykota/trunk/bin/pkinvoice

    r3069 r3079  
    142142        self.canvas.setFont("Helvetica-Bold", size) 
    143143        self.canvas.setFillColorRGB(0, 0, 0) 
    144         self.canvas.drawRightString(xcenter, self.ypos, "%s :" % label) 
     144        self.canvas.drawRightString(xcenter, self.ypos, "%s :" % self.userCharsetToUTF8(label)) 
    145145        self.canvas.setFont("Courier-Bold", size) 
    146146        self.canvas.setFillColorRGB(0, 0, 1) 
    147         self.canvas.drawString(xcenter + 0.5*cm, self.ypos, value) 
     147        self.canvas.drawString(xcenter + 0.5*cm, self.ypos, self.userCharsetToUTF8(value)) 
    148148        self.canvas.restoreState() 
    149149        self.ypos -= (size + 4) 
     
    231231        self.canvas.setFont("Helvetica-Bold", 14) 
    232232        self.canvas.setFillColorRGB(0, 0, 0) 
    233         self.canvas.drawCentredString(xcenter, self.ypos, "%s :" % _("Here's the invoice for your printouts")) 
     233        msg = _("Here's the invoice for your printouts") 
     234        self.canvas.drawCentredString(xcenter, self.ypos, "%s :" % self.userCharsetToUTF8(msg)) 
    234235         
    235236        self.yorigine = self.ypos