[Zope3-checkins] CVS: Zope3/src/zope/publisher - browser.py:1.15 ftp.py:1.4 http.py:1.20 normal.clb:1.3 publish.py:1.8 xmlrpc.py:1.5

Viktorija Zaksiene ryzaja@codeworks.lt
Fri, 11 Apr 2003 08:56:11 -0400


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

Modified Files:
	browser.py ftp.py http.py normal.clb publish.py xmlrpc.py 
Log Message:
Cleanup: removed unused imports and whitespaces.


=== Zope3/src/zope/publisher/browser.py 1.14 => 1.15 ===
--- Zope3/src/zope/publisher/browser.py:1.14	Fri Apr 11 08:47:43 2003
+++ Zope3/src/zope/publisher/browser.py	Fri Apr 11 08:55:41 2003
@@ -19,15 +19,12 @@
 import re
 from types import ListType, TupleType, StringType, StringTypes
 from cgi import FieldStorage, escape
-from datetime import datetime
 
 from zope.i18n.interfaces import IUserPreferredLanguages
 from zope.i18n.interfaces import IUserPreferredCharsets
 from zope.publisher.interfaces.browser import IBrowserPresentation
 from zope.publisher.interfaces.browser import IBrowserRequest
-from zope.publisher.interfaces.browser import IBrowserPublication
 from zope.publisher.interfaces.browser import IBrowserApplicationRequest
-from zope.publisher.interfaces import Redirect
 
 from zope.publisher.interfaces.browser import IBrowserView
 from zope.component import getAdapter


=== Zope3/src/zope/publisher/ftp.py 1.3 => 1.4 ===
--- Zope3/src/zope/publisher/ftp.py:1.3	Tue Feb 11 11:00:08 2003
+++ Zope3/src/zope/publisher/ftp.py	Fri Apr 11 08:55:41 2003
@@ -45,7 +45,7 @@
     def __init__(self, body_instream, outstream, environ, response=None):
         self._auth = environ.get('credentials')
         del environ['credentials']
-         
+
         super(FTPRequest, self).__init__(
             body_instream, outstream, environ, response)
 
@@ -56,7 +56,7 @@
             path = path.split('/')
             path.reverse()
             self.setTraversalStack(path)
-        
+
 
     def _createResponse(self, outstream):
         """Create a specific XML-RPC response object."""


=== Zope3/src/zope/publisher/http.py 1.19 => 1.20 ===
--- Zope3/src/zope/publisher/http.py:1.19	Fri Apr 11 08:47:43 2003
+++ Zope3/src/zope/publisher/http.py	Fri Apr 11 08:55:41 2003
@@ -31,11 +31,9 @@
 from zope.publisher.interfaces.http import IHTTPResponse
 from zope.publisher.interfaces.http import IHTTPApplicationResponse
 from zope.i18n.interfaces import IUserPreferredCharsets
-from zope.i18n.interfaces import IUserPreferredCharsets
 from zope.i18n.locales import locales, LoadLocaleError
 
 from zope.component import queryAdapter
-from zope.exceptions import NotFoundError
 from zope.publisher.base import BaseRequest, BaseResponse
 from zope.publisher.base \
      import RequestDataProperty, RequestDataMapper, RequestDataGetter


=== Zope3/src/zope/publisher/normal.clb 1.2 => 1.3 ===
--- Zope3/src/zope/publisher/normal.clb:1.2	Wed Dec 25 09:15:18 2002
+++ Zope3/src/zope/publisher/normal.clb	Fri Apr 11 08:55:41 2003
@@ -1,4 +1,4 @@
-Publisher framework base collaboration 
+Publisher framework base collaboration
 
   Participants:
 
@@ -13,7 +13,7 @@
 
   Values:
 
-    root 
+    root
         "the top-level object"
 
     foo
@@ -33,7 +33,7 @@
 
         request.processInputs()
 
-        publication.beforeTraversal(request) 
+        publication.beforeTraversal(request)
 
         publication.getApplication(request)
            "Get the root object to be traversed"
@@ -49,16 +49,16 @@
 
                 The last constraint is probably important to get
                 virtual host semantics rigfht. :)
-                ''' 
-            
+                '''
+
             publication.traverseName(request, root, 'foo')
 
             publication.callTraversalHooks(request, foo)
-                       
+
             publication.traverseName(request, foo, 'bar')
-            
+
             return bar
-            
+
         publication.afterTraversal(request, bar)
 
         publication.callObject(request, bar)
@@ -81,16 +81,16 @@
 
         request.processInputs()
 
-        publication.beforeTraversal(request) 
+        publication.beforeTraversal(request)
 
         publication.getApplication(request)
 
         request.traverse(root)
 
             publication.callTraversalHooks(request, root)
-            
+
             publication.traverseName(request, root, 'foo')
-            
+
             return foo
 
         publication.afterTraversal(request, foo)


=== Zope3/src/zope/publisher/publish.py 1.7 => 1.8 ===
--- Zope3/src/zope/publisher/publish.py:1.7	Thu Mar 13 13:35:14 2003
+++ Zope3/src/zope/publisher/publish.py	Fri Apr 11 08:55:41 2003
@@ -18,7 +18,6 @@
 $Id$
 """
 
-import os
 import sys
 from zope.publisher.interfaces import Retry
 from zope.proxy.introspection import removeAllProxies


=== Zope3/src/zope/publisher/xmlrpc.py 1.4 => 1.5 ===
--- Zope3/src/zope/publisher/xmlrpc.py:1.4	Tue Jan 14 15:26:04 2003
+++ Zope3/src/zope/publisher/xmlrpc.py	Fri Apr 11 08:55:41 2003
@@ -17,7 +17,6 @@
 """
 import sys
 import xmlrpclib
-from cgi import FieldStorage
 
 from zope.publisher.interfaces.xmlrpc import IXMLRPCPublisher
 from zope.publisher.interfaces.xmlrpc import IXMLRPCPublication
@@ -144,7 +143,7 @@
     def handleException(self, exc_info):
         """Handle Errors during publsihing and wrap it in XML-RPC XML"""
         t, value = exc_info[:2]
-            
+
         # Create an appropriate Fault object. Unfortunately, we throw away
         # most of the debugging information. More useful error reporting is
         # left as an exercise for the reader.