Show
Ignore:
Timestamp:
08/06/08 19:52:38 (5 months ago)
Author:
mariodebian
Message:

tcosmonitor (0.2.16~rc3)

  • New class: TcosListView?.py:
    • Move some code from TcosActions?.py (code to work with list view mode)
  • New class: TcosMenus?.py:
    • Move some code from TcosActions?.py to generate menus and capture events
  • Delete deprecated and comented gtk.gdk.threads_*() calls
  • Update template and spanish translation
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tcosmonitor/LocalData.py

    r930 r944  
    319319                    return False 
    320320            return True 
    321         except: 
     321        except Exception, err: 
     322            print_debug("ipValid() Exception, error=%s"%err) 
    322323            return False 
    323324 
     
    325326        try: 
    326327            return socket.getaddrinfo(hostname, None)[0][4][0]   
    327         except: 
     328        except Exception, err: 
     329            print_debug("GetIpAddress() Exception, error=%s"%err) 
    328330            return None 
    329331         
     
    353355            self.add_to_cache( ip, 1 , self.hostname ) 
    354356            return self.hostname 
    355         except: 
     357        except Exception, err: 
     358            print_debug("GetHostname() Exception, error=%s"%err) 
    356359            pass 
    357360         
     
    436439 
    437440    def GetLast(self, ip, ingroup=None): 
     441        start=time() 
    438442        last=None 
    439443        data={} 
     
    498502            data={"pid":last.ut_pid, "user":last.ut_user, "host":last.ut_host.split(":")[0], "time":last.ut_tv[0], "timelogged":timelogged, "exclude":exclude} 
    499503            print_debug("IsLast() data=%s"%data) 
     504        crono(start, "GetLast()") 
    500505        return data 
    501506