예제 #1
0
파일: tail.py 프로젝트: msfrank/terane
 def startService(self):
     Window.startService(self)
     logger.debug("started tail: using query '%s'" % self._query)
     self._proxy = Proxy(self._url,
                         user=self._user,
                         password=self._pass,
                         allowNone=True)
     self._tail()
예제 #2
0
파일: tail.py 프로젝트: msfrank/terane
 def stopService(self):
     if self._delayed != None:
         self._delayed.cancel()
     self._delayed = None
     if self._deferred != None:
         self._deferred.cancel()
     self._deferred = None
     logger.debug("stopped tail")
     Window.stopService(self)
예제 #3
0
 def stopService(self):
     if self._delayed != None:
         self._delayed.cancel()
     self._delayed = None
     if self._deferred != None:
         self._deferred.cancel()
     self._deferred = None
     logger.debug("stopped tail")
     Window.stopService(self)
예제 #4
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)
예제 #5
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)
예제 #6
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)
예제 #7
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)
예제 #8
0
 def stopService(self):
     if self._deferred != None:
         self._deferred.cancel()
     self._deferred = None
     logger.debug("stopped search")
     Window.stopService(self)
예제 #9
0
 def startService(self):
     Window.startService(self)
     logger.debug("started search")
     self.reload()
예제 #10
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)
예제 #11
0
 def startService(self):
     Window.startService(self)
     logger.debug("started tail: using query '%s'" % self._query)
     self._proxy = Proxy(self._url, user=self._user, password=self._pass, allowNone=True)
     self._tail()
예제 #12
0
파일: search.py 프로젝트: msfrank/terane
 def stopService(self):
     if self._deferred != None:
         self._deferred.cancel()
     self._deferred = None
     logger.debug("stopped search")
     Window.stopService(self)
예제 #13
0
파일: search.py 프로젝트: msfrank/terane
 def startService(self):
     Window.startService(self)
     logger.debug("started search")
     self.reload()