Next / Previous / Contents / TCC Help System / NM Tech homepage

4.8. ArticleHandler.__init__(): Constructor

The constructor for the ArticleHandler has only two duties. First, it calls the parent class constructor.

litsource
# - - -   A r t i c l e H a n d l e r . _ _ i n i t _ _   - - -

    def __init__ ( self ):
        """Constructor for ArticleHandler.
        """

        #-- 1 --
        # [ self  :=  a new ContentHandler instance ]
        ContentHandler.__init__ ( self )

Then it initializes the instance variables.

litsource
        #-- 2 --
        self.fileMap  =  {}
        self.outFileName  =  self.outFile  =  None