From: Benoît Pin Date: Tue, 24 Jun 2014 08:53:07 +0000 (+0200) Subject: Ajout des imports nécessaires au fonctionnement de la méthode search. X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/4e31549f317ab0f4816129265d6dde20626fc416?hp=e9f249dc773d6b5b9648310e7bfcc5a2d3cbb330 Ajout des imports nécessaires au fonctionnement de la méthode search. --- 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) :