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
Exemple #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
Exemple #3
0
 def write(self, viewer, selectionOnly=False):
     htmlText = generator.viewer2html(viewer, selectionOnly)
     self.__fd.write(htmlText)
Exemple #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