Diff for /checkStation/checkStation.py between versions 1.5 and 1.6

version 1.5, 2005/05/15 12:12:15 version 1.6, 2005/06/23 17:12:56
Line 6  import os Line 6  import os
 import os.path  import os.path
 import time  import time
   
 module_list=['11150','11220','11240','11340','12010','13110','13210','13310','13500','20610','21210','21600','22310','23110','24110','24212','24231','24241','24251','24321','24341','24411','24421','24431','24441','24511','24521','30511','31111','31120','31131','31142','31151','31161','31171','31221','31231','31252','31305','31410','32010','33100']  module_list=['10010','11150','11220','11240','11340','12010','13110','13210','13310','13500','20610','21210','21600','22310','23110','24110','24212','24231','24241','24251','24321','24341','24411','24421','24431','24441','24511','24521','30511','31111','31120','31131','31142','31151','31161','31171','31211','31221','31231','31252','31305','31410','32010','33100']
   
 # station non checked: 31211  # station non checked: 31211
   
Line 105  class checkStation(SimpleItem): Line 105  class checkStation(SimpleItem):
         self.id=id          self.id=id
         self.modulOverview={}          self.modulOverview={}
   
     def checkStation(self,nr,time=10,formats=["VID","BRA","ZOG"]):      def checkStation(self,nr,time=7,formats=["VID","BRA","ZOG","TXT","IMG"]):
         """check station with nr nr"""          """check station with nr nr"""
         txt=[]          txt=[]
   
Line 163  class checkStation(SimpleItem): Line 163  class checkStation(SimpleItem):
                 retStr+=str%(ip,process) + "<br>"                  retStr+=str%(ip,process) + "<br>"
         return retStr          return retStr
                   
     def checkRebootDead(self,timer=10):      def checkRebootDead(self,timer=7):
         """checks and reboots non responding firefox"""          """checks and reboots non responding firefox"""
         self.lastCheck=time.localtime()          self.lastCheck=time.localtime()
         ret="<html><body><p>"          ret="<html><body><h1>check and reboot</h1><p>"
                   
         for modul in self.getModuls():          for modul in self.getModuls():
   
Line 178  class checkStation(SimpleItem): Line 178  class checkStation(SimpleItem):
                     setattr(self,'modulOverview',{})                      setattr(self,'modulOverview',{})
                 self.modulOverview[modul]=time.localtime()                  self.modulOverview[modul]=time.localtime()
           
         return ret          return ret+"</p></body></html>"
   
     def rebootOverview(self):      def rebootOverview(self):
         """give Overview"""          """give Overview"""

Removed from v.1.5  
changed lines
  Added in v.1.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>