[Zope3-checkins] CVS: Zope3/src/zope/app/component -
metaconfigure.py:1.17
Philipp von Weitershausen
philikon at philikon.de
Mon Aug 4 12:37:51 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/component
In directory cvs.zope.org:/tmp/cvs-serv26654
Modified Files:
metaconfigure.py
Log Message:
Revive resolveInterface upon Gary's request just for the moment...
=== Zope3/src/zope/app/component/metaconfigure.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/component/metaconfigure.py:1.16 Mon Aug 4 11:07:54 2003
+++ Zope3/src/zope/app/component/metaconfigure.py Mon Aug 4 11:37:46 2003
@@ -336,3 +336,10 @@
args = (Interfaces, 'provideInterface',
type.__module__+'.'+type.__name__, type)
)
+
+#XXX you will be terminated soon
+def resolveInterface(_context, id):
+ interface = interfaceService.queryInterface(id, None)
+ if interface is None:
+ interface = _context.resolve(id)
+ return interface
More information about the Zope3-Checkins
mailing list