[Zope-Checkins] CVS: Zope2 - ZCatalog.py:1.85.8.1
chrism@serenade.digicool.com
chrism@serenade.digicool.com
Thu, 19 Apr 2001 13:20:00 -0400
Update of /cvs-repository/Zope2/lib/python/Products/ZCatalog
In directory serenade.digicool.com:/home/chrism/sandboxes/RegexExtermination/lib/python/Products/ZCatalog
Modified Files:
Tag: ajung-2_4-ts_regex-exterminiation-branch
ZCatalog.py
Log Message:
Removed dependencies on regex module by removing import of orify and eliminating query_map.
--- Updated File ZCatalog.py in package Zope2 --
--- ZCatalog.py 2001/03/21 22:49:12 1.85
+++ ZCatalog.py 2001/04/19 17:20:00 1.85.8.1
@@ -90,17 +90,15 @@
from OFS.FindSupport import FindSupport
from DateTime import DateTime
from SearchIndex import Query
-import string, regex, urlparse, urllib, os, sys, time
+import string, urlparse, urllib, os, sys, time
import Products
from Acquisition import Implicit
from Persistence import Persistent
from DocumentTemplate.DT_Util import InstanceDict, TemplateDict
from DocumentTemplate.DT_Util import Eval, expr_globals
from AccessControl.Permission import name_trans
-from Catalog import Catalog, orify, CatalogError
-from SearchIndex import UnIndex, UnTextIndex
+from Catalog import Catalog, CatalogError
from Vocabulary import Vocabulary
-from Shared.DC.ZRDB.TM import TM
from AccessControl import getSecurityManager
from zLOG import LOG, ERROR
@@ -518,21 +516,14 @@
'width': 8})
return r
- def searchResults(self, REQUEST=None, used=None,
- query_map={
- type(regex.compile('')): Query.Regex,
- type([]): orify,
- type(()): orify,
- type(''): Query.String,
- }, **kw):
+ def searchResults(self, REQUEST=None, used=None, **kw):
"""
Search the catalog according to the ZTables search interface.
Search terms can be passed in the REQUEST or as keyword
arguments.
"""
- return apply(self._catalog.searchResults,
- (REQUEST,used, query_map), kw)
+ return apply(self._catalog.searchResults, (REQUEST,used), kw)
__call__=searchResults