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()
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)
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)
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)
def stopService(self): if self._deferred != None: self._deferred.cancel() self._deferred = None logger.debug("stopped search") Window.stopService(self)
def startService(self): Window.startService(self) logger.debug("started search") self.reload()
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)