コード例 #1
0
ファイル: rest_handler.py プロジェクト: atupal/supervisor
 def status (self):
     return producers.simple_producer (
             '<li>%s' % status_handler.html_repr (self)
             + '<ul>'
             + '  <li><b>Total Hits:</b> %s'                 % self.hit_counter
             + '</ul>'
             )
コード例 #2
0
ファイル: RPCServer.py プロジェクト: WittsEnd2/Space-Scanner
 def status(self):
     return producers.simple_producer(
         '<li>%s' % status_handler.html_repr(self) + '<ul>' +
         '  <li><b>Total Commands:</b> %s' % self.commandCounter +
         '  <li><b>Completed:</b> %s' % self.completedCounter +
         '  <li><b>Serious Exceptions:</b> %s' % self.seriousExcCounter +
         '  <li><b>Total Exceptions:</b> %s' % self.exceptionsCounter +
         '</ul>')
コード例 #3
0
 def status (self):
     return producers.simple_producer (
         '<li>%s' % status_handler.html_repr (self)
         + '<ul>'
         + '  <li><b>Total Commands:</b> %s' % self.commandCounter
         + '  <li><b>Completed:</b> %s' % self.completedCounter
         + '  <li><b>Serious Exceptions:</b> %s' % self.seriousExcCounter
         + '  <li><b>Total Exceptions:</b> %s' % self.exceptionsCounter
         + '</ul>'
         )