Changeset 3079

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

Now prepares datas for ReportLab? 2.x

Location:
pykota/trunk
Files:
3 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 
  • pykota/trunk/NEWS

    r3075 r3079  
    2424    - 1.25alpha17 (2006-11-27) : 
    2525     
     26        - The code was changed to accomodate ReportLab 2.x in pkbanner 
     27          and pkinvoice. ReportLab v1.x is now only supported with  
     28          an english or C locale. 
     29           
    2630        - pknotify now accepts the --noremote command line option to 
    2731          decide what has to be done when there's no PyKotIcon running