[Zope3-checkins]
SVN: Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/requestpublicationregistry.py
fixes
Andreas Jung
andreas at andreas-jung.com
Sat Oct 8 03:24:30 EDT 2005
Log message for revision 38916:
fixes
Changed:
U Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/requestpublicationregistry.py
-=-
Modified: Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/requestpublicationregistry.py
===================================================================
--- Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/requestpublicationregistry.py 2005-10-08 06:56:55 UTC (rev 38915)
+++ Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/requestpublicationregistry.py 2005-10-08 07:24:30 UTC (rev 38916)
@@ -18,9 +18,10 @@
"""
__docformat__ = 'restructuredtext'
+import sets
from zope.interface import implements
from zope.app.publication.interfaces import IRequestPublicationRegistry
-from zope.configuration.exception import ConfigurationError
+from zope.configuration.exceptions import ConfigurationError
class RequestPublicationRegistry(object):
""" The registry implements a three stage lookup for registred factories
@@ -64,7 +65,7 @@
# check if the priorities are unique
priorities = [item['priority'] for item in l]
- if len(sets.Set(priorities)) != len(l)
+ if len(sets.Set(priorities)) != len(l):
raise ConfigurationError('All registered publishers for a given '
'method+mimetype must have distinct '
'priorities. Please check your ZCML '
More information about the Zope3-Checkins
mailing list