6.4.5.1. Initialisation

6.4.5.1. Initialisation

Start python section to interscript/weavers/html.py[2]
    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.master = pass_frame.master
    43:     self.list = []
    44:     self.name = 'html weaver v1 for '+self.sink.name
    45:     self.heading_level_offset = 0
    46:     self.keywords = kwds
    47:     self.tags = ['html'] # this 'tags' has nothing to do with html tags!
    48:     self.toc = []
    49:     if kwds.has_key('title'):
    50:       self.title=kwds['title']
    51:     else:
    52:       title = self.sink.name
    53: 
    54:     self.prolog()
    55: 
End python section to interscript/weavers/html.py[2]