[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/publication/requestpublicationregistry.py making getFactoriesFor() fault-safe against white-space issues

Andreas Jung andreas at andreas-jung.com
Sun Oct 23 09:19:47 EDT 2005


Log message for revision 39564:
  making getFactoriesFor() fault-safe against white-space issues
  

Changed:
  U   Zope3/trunk/src/zope/app/publication/requestpublicationregistry.py

-=-
Modified: Zope3/trunk/src/zope/app/publication/requestpublicationregistry.py
===================================================================
--- Zope3/trunk/src/zope/app/publication/requestpublicationregistry.py	2005-10-23 12:43:14 UTC (rev 39563)
+++ Zope3/trunk/src/zope/app/publication/requestpublicationregistry.py	2005-10-23 13:19:47 UTC (rev 39564)
@@ -79,7 +79,7 @@
             mimetype = mimetype.split(';')[0]
 
         try:
-            return self._d[method][mimetype]
+            return self._d[method][mimetype.strip()]
         except KeyError:
             return None
 



More information about the Zope3-Checkins mailing list