def status(self): lines = ['<h2>%s</h2>' % self.SERVER_IDENT, '<br>Listening on Port: %d' % self.port, '<br><b>Total Sessions:</b> %d' % self.count, '<br><b>Current Sessions:</b> %d' % (len(self.channels)) ] return status_handler.lines_producer(lines)
def status (self): lines = [ '<h2>%s</h2>' % self.SERVER_IDENT, '<br>Listening on Port: %d' % self.port, '<br><b>Total Sessions:</b> %d' % self.count, '<br><b>Current Sessions:</b> %d' % (len(self.channels)) ] return status_handler.lines_producer (lines)