(self, topic=None, args=None, description=None, required=None)
Give this to pub.subscribe() as listener of
        'pubsub.newTopic' messages.
        Messages are only generated when pub.newTopic is called
        explicitly in the code, not on automatic topic generation
Give this to pub.subscribe() as listener of
        'pubsub.newTopic' messages.
        Messages are only generated when pub.newTopic is called
        explicitly in the code, not on automatic topic generation
Give this to pub . subscribe () as listener of pubsub . newTopic messages . Messages are only generated when pub . newTopic is called explicitly in the code not on automatic topic generation
def newTopic(self, topic=None, args=None, description=None, required=None):
        """Give this to pub.subscribe() as listener of
        'pubsub.newTopic' messages.
        Messages are only generated when pub.newTopic is called
        explicitly in the code, not on automatic topic generation
        """
        msg = '%sNew topic "%s" created (%s)\n'
        msg = msg % (self.prefix, topic.getName(), description)
        self._out.write(msg)
        self.lastTopic = topic.getName()
        self.lastLogTopic == 'pubsub.newTopic'
        self.lastMsg = msg
        self.counts['newt'] += 1
def newTopic ( self , topic = None , args = None , description = None , required = None ) : msg = '%sNew topic "%s" created (%s)\n' msg = msg % ( self . prefix , topic . getName ( ) , description ) self . _out . write ( msg ) self . lastTopic = topic . getName ( ) self . lastLogTopic == 'pubsub.newTopic' self . lastMsg = msg self . counts [ 'newt' ] += 1