[Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex - ZCTextIndex.py:1.28
Casey Duncan
casey@zope.com
Wed, 26 Jun 2002 11:15:50 -0400
Update of /cvs-repository/Zope/lib/python/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv8791
Modified Files:
ZCTextIndex.py
Log Message:
Added api to retrieve the indexed field name from the index.
Updated Overview managment screen so it shows more info about the index.
=== Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py 1.27 => 1.28 ===
manage_options = (
- {'label': 'Settings', 'action': 'manage_main'},
+ {'label': 'Overview', 'action': 'manage_main'},
)
query_options = ['query']
@@ -170,6 +170,10 @@
def getIndexType(self):
"""Return index type string"""
return getattr(self, '_index_type', self._index_factory.__name__)
+
+ def getFieldName(self):
+ """Return indexed attribute name"""
+ return self._fieldname
InitializeClass(ZCTextIndex)