[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate - metaconfigure.py:1.6

Jim Fulton jim at zope.com
Sat Mar 6 11:50:58 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/pagetemplate
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/pagetemplate

Modified Files:
	metaconfigure.py 
Log Message:
Converted most getAdapter calls to use interface calls instead.


=== Zope3/src/zope/app/pagetemplate/metaconfigure.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/pagetemplate/metaconfigure.py:1.5	Wed Mar  3 21:10:09 2004
+++ Zope3/src/zope/app/pagetemplate/metaconfigure.py	Sat Mar  6 11:50:27 2004
@@ -18,13 +18,12 @@
 """
 from zope.app.pagetemplate.engine import Engine
 from zope.testing.cleanup import addCleanUp
-from zope.component import getAdapter
 
 def namespace(_context, prefix, interface):
     _context.action(
         discriminator = ("tales:namespace", prefix),
         callable = Engine.registerFunctionNamespace,
-        args = (prefix, lambda ob: getAdapter(ob, interface)),
+        args = (prefix, lambda ob: interface(ob)),
         )
 
 def expressiontype(_context, name, handler):




More information about the Zope3-Checkins mailing list