[Zope-Checkins] CVS: Zope2 - KeywordIndex.py:1.1.2.5
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Mon, 21 May 2001 10:33:53 -0400
Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/KeywordIndex
In directory serenade:/tmp/cvs-serv13346/lib/python/Products/PluginIndexes/KeywordIndex
Modified Files:
Tag: ajung-dropin-registry
KeywordIndex.py
Log Message:
cut&paste programming sux...fixed wrong meta_type
--- Updated File KeywordIndex.py in package Zope2 --
--- KeywordIndex.py 2001/05/16 19:24:58 1.1.2.4
+++ KeywordIndex.py 2001/05/21 14:33:53 1.1.2.5
@@ -108,8 +108,6 @@
manage_options= (
SimpleItem.manage_options
)
-
- meta_type = 'Keyword Index'
"""Like an UnIndex only it indexes sequences of items
@@ -130,7 +128,9 @@
# self.id is the name of the index, which is also the name of the
# attribute we're interested in. If the attribute is callable,
# we'll do so.
+
newKeywords = getattr(obj, self.id, ())
+ print newKeywords
if callable(newKeywords):
newKeywords = newKeywords()