(self, topicObj)
This gets called for each topic. Print as per specified content.
This gets called for each topic. Print as per specified content.
This gets called for each topic . Print as per specified content .
def _onTopic(self, topicObj):
        """This gets called for each topic. Print as per specified content."""

        # topic name
        self.__wrapper.width = self.__width
        indent = self.__indent
        if topicObj.isAll():
            topicName = self.ALL_TOPICS_NAME
        else:
            topicName = topicObj.getNodeName()
        head = '%s Topic "%s"' % (self.__topicsBullet, topicName)
        self.__output.append(self.__formatDefn(indent, head))
        indent += self.__indentStep

        # each extra content (assume constructor verified that chars are valid)
        for item in self.__content:
            function = self.__contentMeth[item]
            function(indent, topicObj)
def _onTopic ( self , topicObj ) : # topic name self . __wrapper . width = self . __width indent = self . __indent if topicObj . isAll ( ) : topicName = self . ALL_TOPICS_NAME else : topicName = topicObj . getNodeName ( ) head = '%s Topic "%s"' % ( self . __topicsBullet , topicName ) self . __output . append ( self . __formatDefn ( indent , head ) ) indent += self . __indentStep # each extra content (assume constructor verified that chars are valid) for item in self . __content : function = self . __contentMeth [ item ] function ( indent , topicObj )