Logo Search packages:      
Sourcecode: vinetto version File versions  Download package

def vinreport::HtRep::__init__ (   self,
  tDBfname,
  outputdir,
  verstr 
)

Initialize a new HtRep instance.  

Reimplemented from vinreport::Report.

Definition at line 56 of file vinreport.py.

00056                                                     :
        """ Initialize a new HtRep instance.  """
        Report.__init__(self, tDBfname, outputdir, verstr)
        self.rownumber = 0
        separatorID = 0
        
        for ligne in open("/usr/share/vinetto/HtRepTemplate.html",
                          "r").readlines():
            if ligne.find("__ITS__") >= 0:
                separatorID += 1
                continue
                
            if separatorID == 0:
                HtHeader.append(ligne)
            elif separatorID == 1:
                HtPicRow.append(ligne)
            elif separatorID == 2:
                HtOrphans.append(ligne)
            elif separatorID == 3:
                HtFooter.append(ligne)
              
        self.TNidList = []
        self.TNtsList = []
        self.TNnameList = []
    
    
    def SetFileSection (self, FileSize, md5):


Generated by  Doxygen 1.6.0   Back to index