[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - ConverterRegistry.py:1.1.2.3
Andreas Jung
andreas@digicool.com
Sat, 2 Mar 2002 12:34:55 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv15014
Modified Files:
Tag: ajung-textindexng-branch
ConverterRegistry.py
Log Message:
minor changes
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/ConverterRegistry.py 1.1.2.2 => 1.1.2.3 ===
def getConverterFor(self, mimetype):
- return self.converters[ mimetype ]
+ return self.converters.get(mimetype, None)
def addConverter(self, mimetype=None, instance=None):
""" map a mimetype to a converter instance """