[Zope-Checkins] CVS: Zope2 - util.py:1.1.2.10
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Fri, 25 May 2001 12:21:20 -0400
Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/common
In directory serenade:/tmp/cvs-serv31912
Modified Files:
Tag: ajung-dropin-registry
util.py
Log Message:
--- Updated File util.py in package Zope2 --
--- util.py 2001/05/23 19:47:57 1.1.2.9
+++ util.py 2001/05/25 16:21:20 1.1.2.10
@@ -124,7 +124,6 @@
ParserException = 'IndexRequestParseError'
-
def __init__(self,request,iid):
""" parse a request from the ZPublisher and return a uniform
datastructure back to the _apply_index() method of the index
@@ -136,7 +135,6 @@
self.id = iid
self.keys = None
-
if not request.has_key(iid): return
if request.has_key(iid+'_usage'):
@@ -151,7 +149,7 @@
# This check checks if the object is an instance of
# Record - This check is lame and should be fixed !
- if repr(type(keys)).find('instance') != -1:
+ if type(keys) == InstanceType:
""" query is of type record """
record = keys