[Zope3-checkins]
SVN: Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/
using direct insanciation (utility are not available at bootstrap
Tarek Ziadé
tziade at nuxeo.com
Fri Oct 7 07:51:32 EDT 2005
Log message for revision 38872:
using direct insanciation (utility are not available at bootstrap
Changed:
U Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/configure.zcml
U Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/metaconfigure.py
-=-
Modified: Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/configure.zcml
===================================================================
--- Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/configure.zcml 2005-10-07 11:50:26 UTC (rev 38871)
+++ Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/configure.zcml 2005-10-07 11:51:32 UTC (rev 38872)
@@ -10,11 +10,6 @@
permission="zope.Public"
/>
- <utility
- provides="zope.app.publication.interfaces.IRequestPublicationRegistry"
- component="zope.app.publication.requestpublicationregistry.PublicationRegistry"
- />
-
<publisher
name="SOAP"
factory=".requestpublicationfactories.SOAPFactory"
Modified: Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/metaconfigure.py
===================================================================
--- Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/metaconfigure.py 2005-10-07 11:50:26 UTC (rev 38871)
+++ Zope3/branches/ajung-target-requestpublication-next-try-branch/src/zope/app/publication/metaconfigure.py 2005-10-07 11:51:32 UTC (rev 38872)
@@ -19,9 +19,9 @@
"""
__docformat__ = 'restructuredtext'
-from zope.app.zapi import getUtility
-from zope.app.publication.interfaces import IRequestPublicationRegistry
+from zope.app.publication.requestpublicationregistry import RequestPublicationRegistry
+
class RequestPublicationRegisterer(object):
""" Link a request type to a request-publication factory """
@@ -56,7 +56,7 @@
""" calls the register factory utility, that actually links
the factory.
"""
- factory_registerer = getUtility(IRequestPublicationRegistry)
+ factory_registerer = RequestPublicationRegistry()
registerer = factory_registerer.register
# need to register all methods<->mimetypes combos here
More information about the Zope3-Checkins
mailing list