예제 #1
0
 def __init__(self, args):
     # configure the searcher
     title = "Search results for '%s'" % args
     self._query = args
     self._results = ResultsListbox()
     self._url = "http://%s/XMLRPC" % console.host
     self._user = console.username
     self._pass = console.password
     self._deferred = None
     Window.__init__(self, title, self._results)
예제 #2
0
파일: search.py 프로젝트: msfrank/terane
 def __init__(self, args):
     # configure the searcher
     title = "Search results for '%s'" % args
     self._query = args
     self._results = ResultsListbox()
     self._url = "http://%s/XMLRPC" % console.host
     self._user = console.username
     self._pass = console.password
     self._deferred = None
     Window.__init__(self, title, self._results)
예제 #3
0
파일: tail.py 프로젝트: msfrank/terane
 def __init__(self, args):
     title = "Tail '%s'" % args
     self._query = args
     self._lastId = None
     self._results = ResultsListbox()
     self.interval = 2
     self._url = "http://%s/XMLRPC" % console.host
     self._user = console.username
     self._pass = console.password
     self._delayed = None
     self._deferred = None
     logger.debug("using proxy url %s" % self._url)
     Window.__init__(self, title, self._results)
예제 #4
0
 def __init__(self, args):
     title = "Tail '%s'" % args
     self._query = args
     self._lastId = None
     self._results = ResultsListbox()
     self.interval = 2
     self._url = "http://%s/XMLRPC" % console.host
     self._user = console.username
     self._pass = console.password
     self._delayed = None
     self._deferred = None
     logger.debug("using proxy url %s" % self._url)
     Window.__init__(self, title, self._results)
예제 #5
0
 def __init__(self, args):
     self._path = os.path.expanduser(args)
     title = "Results from file %s" % self._path
     self._results = ResultsListbox()
     Window.__init__(self, title, self._results)