gmyth-stream/server/0.2/lib/server.py
branchtrunk
changeset 598 b66392e80922
parent 585 a1783dab9ba6
child 628 c6af9d7a88b5
     1.1 --- a/gmyth-stream/server/0.2/lib/server.py	Mon Apr 23 16:06:54 2007 +0100
     1.2 +++ b/gmyth-stream/server/0.2/lib/server.py	Thu Apr 26 16:30:23 2007 +0100
     1.3 @@ -22,6 +22,7 @@
     1.4      log = log.getLogger("gms.transcoder")
     1.5      priority = 0   # negative values have higher priorities
     1.6      name = None # to be used in requests
     1.7 +    status = None
     1.8  
     1.9      def __init__(self, params):
    1.10          self.params = params
    1.11 @@ -237,9 +238,10 @@
    1.12  
    1.13                  for transcoder, request in tl:
    1.14                      stopone = self._create_html_item("%s: %s:%s<a href='%s?request=%s:%s'>"
    1.15 -                                                     "[STOP]</a>" % (
    1.16 +                                                     "[STOP]</a> - Status: %s%%" % (
    1.17                          transcoder, request.client_address[0], request.client_address[1],
    1.18 -                        self.menu["Stop"], request.client_address[0], request.client_address[1]) )
    1.19 +                        self.menu["Stop"], request.client_address[0], request.client_address[1],
    1.20 +                        transcoder.status) )
    1.21  
    1.22              self.wfile.write(utils.getHTML("status",
    1.23                                             {"menu": self._nav_items(),