示例#1
0
 def write(self, viewer, settings, selectionOnly=False, separateCSS=False, columns=None):
     cssFilename = os.path.basename(self.__cssFilename) if separateCSS else ''
     htmlText, count = generator.viewer2html(viewer, settings, cssFilename, 
                                             selectionOnly, columns)
     self.__fd.write(htmlText)
     if separateCSS:
         self._writeCSS()
     return count
示例#2
0
 def write(self, viewer, settings, selectionOnly=False, separateCSS=False, columns=None):
     cssFilename = os.path.basename(self.__cssFilename) if separateCSS else ''
     htmlText, count = generator.viewer2html(viewer, settings, cssFilename, 
                                             selectionOnly, columns)
     self.__fd.write(htmlText)
     if separateCSS:
         self._writeCSS()
     return count
示例#3
0
 def write(self, viewer, selectionOnly=False):
     htmlText = generator.viewer2html(viewer, selectionOnly)
     self.__fd.write(htmlText)
示例#4
0
 def write(self, viewer, settings, selectionOnly=False):
     cssFilename = os.path.basename(self.__cssFilename)
     htmlText, count = generator.viewer2html(viewer, settings, cssFilename, selectionOnly)
     self.__fd.write(htmlText)
     self._writeCSS()
     return count