6.4.5.1. Initialisation

Start python section to interscript/weavers/html.py[2 /22 ] Next Prev Last
    31: #line 52 "html_weaver.ipk"
    32:   def __init__(self, pass_frame,writer ,**kwds):
    33:     weaver_base.__init__(self,pass_frame)
    34:     self.verbosity = pass_frame.verbosity
    35:     if self.verbosity>3: print 'initialising html weaver, writer',writer.get_sink_name()
    36:     self.protocol = 'text/html'
    37:     self.sink = writer
    38:     self.acount = 1
    39:     self.hcount = [0]
    40:     self.mode = None
    41:     self.comments = 0
    42:     self.list = []
    43:     self.name = 'html weaver v1 for '+self.sink.name
    44:     self.heading_level_offset = 0
    45:     self.keywords = kwds
    46:     self.tags = ['html'] # this 'tags' has nothing to do with html tags!
    47:     self.toc = []
    48:     if kwds.has_key('title'):
    49:       self.title=kwds['title']
    50:     else:
    51:       title = self.sink.name
    52: 
    53:     self.prolog()
    54: 
End python section to interscript/weavers/html.py[2]