From 4e31549f317ab0f4816129265d6dde20626fc416 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Tue, 24 Jun 2014 10:53:07 +0200 Subject: [PATCH 1/1] =?utf8?q?Ajout=20des=20imports=20n=C3=A9cessaires=20a?= =?utf8?q?u=20fonctionnement=20de=20la=20m=C3=A9thode=20search.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- catalog.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/catalog.py b/catalog.py index 382fc57..365544a 100644 --- a/catalog.py +++ b/catalog.py @@ -11,6 +11,13 @@ from Products.ZCatalog.Catalog import Catalog import transaction from solr import * +# imports for Catalog class +from Products.PluginIndexes.interfaces import ILimitedResultIndex +from Products.ZCatalog.Lazy import LazyMap, LazyCat, LazyValues +from BTrees.IIBTree import intersection, IISet +from BTrees.IIBTree import weightedIntersection +import warnings + class SolrTransactionHook : ''' commit solr couplé sur le commit de la ZODB ''' def __init__(self, connection) : -- 2.20.1