~bernd-sch/onehundredscopes/sshsearch

« back to all changes in this revision

Viewing changes to unity-lens-sshsearch.py

  • Committer: Bernd Schlapsi
  • Date: 2011-12-30 19:23:16 UTC
  • Revision ID: brot@gmx.info-20111230192316-qoyspkdft8qtrk2w
renamed some files and created setup.py (not tested yet)

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
38
38
ICON_FILE = os.path.join(SCRIPT_DIR, 'unity-lens-sshsearch.png')
39
39
 
40
 
 
41
40
class Daemon:
42
41
 
43
42
    def __init__ (self):
84
83
        
85
84
    def __read_known_hosts(self):
86
85
        h = paramiko.HostKeys(KNOWN_HOSTS_EXPAND)
87
 
        hosts = [host for host in h.keys() if len(host) != 60] 
88
 
        return hosts
 
86
        return h.keys()
89
87
        
90
88
    def on_search_changed (self, entry, *args):
91
89
        search = self._scope.props.active_search or None