Beispiel #1
0
 def _writeRptLine(self,rpt,cellValues,i):
     l = []
     for j in range(len(rpt.columns)):
         assert_pure(cellValues[j][i])
         l.append(self.hfill(cellValues[j][i],
                             rpt.columns[j].datatype.halign,
                             rpt.columns[j].width))
     s=self.columnSep.join(l)
     self.write(s.rstrip() + "\n")
 def _row_as_text(self, cellValues, i, columnSep):
     l = []
     for j in range(len(self.columns)):
         assert_pure(cellValues[j][i])
         l.append(
             hfill(cellValues[j][i], self.columns[j].halign,
                   self.columns[j].width))
     s = columnSep.join(l)
     return s.rstrip() + "\n"
 def _row_as_text(self,cellValues,i,columnSep):
     l = []
     for j in range(len(self.columns)):
         assert_pure(cellValues[j][i])
         l.append(hfill(cellValues[j][i],
                        self.columns[j].halign,
                        self.columns[j].width))
     s=columnSep.join(l)
     return s.rstrip()+"\n"
Beispiel #4
0
 def _writeRptLine(self, rpt, cellValues, i):
     l = []
     for j in range(len(rpt.columns)):
         assert_pure(cellValues[j][i])
         l.append(
             self.hfill(cellValues[j][i], rpt.columns[j].datatype.halign,
                        rpt.columns[j].width))
     s = self.columnSep.join(l)
     self.write(s.rstrip() + "\n")
Beispiel #5
0
 def __init__(self, text=None):
     if text is None:
         self.text = ""
     else:
         assert_pure(text)
         self.text = text
Beispiel #6
0
 def __init__(self,text=None):
     if text is None:
         self.text=""
     else:
         assert_pure(text)
         self.text = text
Beispiel #7
0
 def __init__(self,text):
     assert_pure(text)
     self.text = text