[Zope3-checkins] CVS: Zope3/src/zope/component/tests - request.py:1.3

Jim Fulton cvs-admin at zope.org
Fri Nov 21 12:09:22 EST 2003


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

Modified Files:
	request.py 
Log Message:
Requests no-longer need to maintain presentation types.


=== Zope3/src/zope/component/tests/request.py 1.2 => 1.3 ===
--- Zope3/src/zope/component/tests/request.py:1.2	Wed Dec 25 09:13:32 2002
+++ Zope3/src/zope/component/tests/request.py	Fri Nov 21 12:09:22 2003
@@ -16,18 +16,14 @@
 $Id$
 """
 
+import zope.interface
+
 class Request:
 
-    def __init__(self, iface, skin=''):
-        self._iface     = iface
-        self._skin      = skin
+    def __init__(self, type, skin=''):
+        self._skin = skin
+        zope.interface.directlyProvides(self, type)
 
     def getPresentationSkin(self):
-        '''See interface IPresentationRequest'''
-
         return self._skin
 
-    def getPresentationType(self):
-        '''See interface IPresentationRequest'''
-
-        return self._iface




More information about the Zope3-Checkins mailing list