[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/publication/requestpublicationregistry.py
help Andreas on his quest to make this particular bit of code
cleaner :)
Benji York
benji at zope.com
Wed Oct 12 17:04:14 EDT 2005
Log message for revision 39107:
help Andreas on his quest to make this particular bit of code cleaner :)
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-12 20:25:50 UTC (rev 39106)
+++ Zope3/trunk/src/zope/app/publication/requestpublicationregistry.py 2005-10-12 21:04:13 UTC (rev 39107)
@@ -83,14 +83,11 @@
environment.
"""
- found = False
for m,mt in ((method, mimetype), (method, '*'), ('*', '*')):
factory_lst = self.getFactoriesFor(m, mt)
if factory_lst:
- found = True
break
-
- if not found:
+ else:
raise ConfigurationError('No registered publisher found '
'for (%s/%s)' % (method, mimetype))
More information about the Zope3-Checkins
mailing list