def __init__(self, indexstore): if not IIndexStore.providedBy(indexstore): raise TypeError("indexstore class does not implement IIndexStore") Manager.__init__(self) self.setName("queries") self._indexstore = indexstore self.maxResultSize = 10 self.maxIterations = 5
def __init__(self, indexstore): if not IIndexStore.providedBy(indexstore): raise TypeError("indexstore class does not implement IIndexStore") Manager.__init__(self) self.setName("queries") self._indexstore = indexstore self.maxResultSize = 10 self.maxIterations = 5 self._task = getUtility(IScheduler).addTask(self.name)