[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG/converters - __init__.py:1.1.2.5
Andreas Jung
andreas@digicool.com
Wed, 27 Feb 2002 19:36:20 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG/converters
In directory cvs.zope.org:/tmp/cvs-serv18417/converters
Modified Files:
Tag: ajung-textindexng-branch
__init__.py
Log Message:
adjustement for converter classes
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/converters/__init__.py 1.1.2.4 => 1.1.2.5 ===
-import os,
+import os
_converters = {}
@@ -11,10 +11,8 @@
cv = cv[:-3]
mod = __import__(cv, globals(), globals(), __path__)
- if hasattr(mod,'convert'):
- _converters[cv] = mod.convert
+ converter = mod.Converter()
+ for t in converter.getType():
+ _converters[t] = converter
del converters
-
-def getConverter(key):
- return _converters[key]