[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/HTTP - HTTPRequest.py:1.1.2.16

Andreas Jung andreas@digicool.com
Thu, 10 Jan 2002 11:25:22 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/HTTP
In directory cvs.zope.org:/tmp/cvs-serv4966

Modified Files:
      Tag: Zope-3x-branch
	HTTPRequest.py 
Log Message:
added support for IViewRequest


=== Zope3/lib/python/Zope/Publisher/HTTP/HTTPRequest.py 1.1.2.15 => 1.1.2.16 ===
 
 from Zope.Publisher.BaseRequest import BaseRequest
+from Zope.Publisher.Browser.IBrowserPublisher import IBrowserPublisher 
 
 from HTTPResponse import HTTPResponse
 from cgi_names import isCGI_NAME, hide_key
@@ -473,6 +474,30 @@
     def unauthorized(self, challenge):
         self.response.setHeader("WWW-Authenticate", challenge, 1)
         self.response.setStatus(401)
+
+
+    # Implementation methods for interface
+    # Zope.ComponentArchitecture.IViewService.IViewRequest
+
+    __skin = ''
+    
+    def getViewSkin(self):
+        '''See interface IViewRequest'''
+
+        return self.__skin
+
+
+    def setViewSkin(self, skin):
+        ''' add the view skin '''
+ 
+        self.__skin = skin
+
+
+    def getViewType(self):
+        '''See interface IViewRequest'''
+
+        return IBrowserPublisher
+
 
 
 base64 = None