[Zope3-checkins] CVS: Zope3/src/zope/app/tests - ztapi.py:1.5

Garrett Smith garrett at mojave-corp.com
Fri Mar 5 21:46:21 EST 2004


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

Modified Files:
	ztapi.py 
Log Message:
Added function to ztapi for registering factories of objects that provide a 
particular interface.


=== Zope3/src/zope/app/tests/ztapi.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/tests/ztapi.py:1.4	Wed Dec 17 05:06:51 2003
+++ Zope3/src/zope/app/tests/ztapi.py	Fri Mar  5 21:46:20 2004
@@ -28,6 +28,10 @@
     return s.provideView(for_, name, IBrowserRequest, factory, layer,
                          providing=providing)
 
+def browserViewProviding(for_, factory, providing, layer='default'):
+    """Define a view providing a particular interface."""
+    return browserView(for_, '', factory, layer, providing)
+
 def browserResource(name, factory, layer='default',
                     providing=zope.interface.Interface):
     """Define a global browser view




More information about the Zope3-Checkins mailing list