Exemplo n.º 1
0
 def refresh_table(self):
     sock = self.shell.monitor_socket
     if sock is None:
         return
     settings = {}
     for name in ('filters', 'itermax', 'exclude_private', 'exclude_upper',
                  'exclude_unsupported', 'excluded_names', 'truncate',
                  'minmax', 'collvalue'):
         settings[name] = CONF.get('external_shell', name)
     self.set_data(monitor_get_remote_view(sock, settings))
Exemplo n.º 2
0
    def refresh_table(self):
        if self.is_visible and self.isVisible() \
           and self.shellwidget.is_running():
#            import time; print >>STDOUT, time.ctime(time.time()), "Refreshing namespace browser"
            sock = self.shellwidget.monitor_socket
            if sock is None:
                return
            settings = get_settings()
            try:
                self.set_data( monitor_get_remote_view(sock, settings) )
            except socket.error:
                # Process was terminated before calling this methods
                pass