[Zope3-checkins] CVS: Zope3/src/zope/publisher - browser.py:1.27 ftp.py:1.8 http.py:1.44 xmlrpc.py:1.11

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Mar 19 15:27:14 EST 2004


Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv11983/src/zope/publisher

Modified Files:
	browser.py ftp.py http.py xmlrpc.py 
Log Message:


Clean up the publisher to not depend on zope.app and zope.component
anymore. All the view and resource code and interfaces have moved to
zope.app.publisher.




=== Zope3/src/zope/publisher/browser.py 1.26 => 1.27 ===
--- Zope3/src/zope/publisher/browser.py:1.26	Thu Mar 18 22:17:26 2004
+++ Zope3/src/zope/publisher/browser.py	Fri Mar 19 15:26:43 2004
@@ -30,7 +30,6 @@
 from zope.publisher.interfaces.browser import IBrowserRequest
 from zope.publisher.interfaces.browser import IBrowserApplicationRequest
 
-from zope.publisher.interfaces.browser import IBrowserView
 from zope.publisher.http import HTTPRequest, HTTPResponse
 from zope.publisher.base import BaseRequest
 
@@ -897,12 +896,4 @@
 
         return [lang for quality, lang in accepts]
 
-
-class BrowserView:
-
-    implements(IBrowserView)
-
-    def __init__(self, context, request):
-        self.context = context
-        self.request = request
 


=== Zope3/src/zope/publisher/ftp.py 1.7 => 1.8 ===
--- Zope3/src/zope/publisher/ftp.py:1.7	Fri Nov 21 12:12:28 2003
+++ Zope3/src/zope/publisher/ftp.py	Fri Mar 19 15:26:43 2004
@@ -11,11 +11,10 @@
 # FOR A PARTICULAR PURPOSE
 #
 ##############################################################################
-"""
+"""FTP Publisher
 
 $Id$
 """
-
 from zope.interface import implements
 from zope.publisher.interfaces.ftp import IFTPCredentials, IFTPRequest
 from zope.publisher.base import BaseResponse, BaseRequest


=== Zope3/src/zope/publisher/http.py 1.43 => 1.44 ===
--- Zope3/src/zope/publisher/http.py:1.43	Thu Mar 18 23:26:28 2004
+++ Zope3/src/zope/publisher/http.py	Fri Mar 19 15:26:43 2004
@@ -490,15 +490,6 @@
         'See IPublicationRequest'
         super(HTTPRequest, self).setUser(user)
 
-        # XXX: under the publishing conditions,
-        # self.response.http_transaction is an HTTPTask.  It needs to know
-        # the username for logging purposes.  It would make sense to
-        # do this in the server, when the actual hit log entry is
-        # written, but it would require a major refactoring.
-        #
-        # When removing this wart after the server refactoring, grep
-        # the source for setAuthUserName, we had to stub that in
-        # several tests.
         if self.response.http_transaction is not None:
             logging_info = ILoggingInfo(user)
             message = logging_info.getLogMessage()


=== Zope3/src/zope/publisher/xmlrpc.py 1.10 => 1.11 ===
--- Zope3/src/zope/publisher/xmlrpc.py:1.10	Fri Nov 21 12:12:28 2003
+++ Zope3/src/zope/publisher/xmlrpc.py	Fri Mar 19 15:26:43 2004
@@ -25,30 +25,17 @@
 from zope.interface import implements
 from zope.publisher.interfaces.xmlrpc import IXMLRPCPublisher
 from zope.publisher.interfaces.xmlrpc import IXMLRPCRequest
-from zope.publisher.interfaces.xmlrpc import IXMLRPCView
 
 from zope.publisher.http import HTTPRequest, HTTPResponse
 from zope.publisher.http import DefaultPublisher
 from zope.proxy import removeAllProxies
 
-__metaclass__ = type
-
 
 class MethodPublisher(DefaultPublisher):
     """Simple XML-RPC publisher that is identical to the HTTP Default Publisher
        except that it implements the IXMLRPCPublisher interface."""
 
     implements(IXMLRPCPublisher)
-
-    def __init__(self, context, request):
-        self.context = context
-        self.request = request
-
-
-class XMLRPCView:
-    """A base XML-RPC view that can be used as mix-in for XML-RPC views.""" 
-
-    implements(IXMLRPCView)
 
     def __init__(self, context, request):
         self.context = context




More information about the Zope3-Checkins mailing list