[Zope3-checkins] CVS: Zope3/src/zope/publisher/interfaces - browser.py:1.9 ftp.py:1.4 http.py:1.21 xmlrpc.py:1.6

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


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

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/interfaces/browser.py 1.8 => 1.9 ===
--- Zope3/src/zope/publisher/interfaces/browser.py:1.8	Wed Mar 17 13:25:00 2004
+++ Zope3/src/zope/publisher/interfaces/browser.py	Fri Mar 19 15:26:44 2004
@@ -11,16 +11,12 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Browser Interfaces
+
 $Id$
 """
-
 from zope.interface import Attribute
 
-from zope.component.interfaces import IPresentation
-from zope.component.interfaces import IResource
-from zope.component.interfaces import IView
-
 from zope.publisher.interfaces import IPublication
 from zope.publisher.interfaces import IPublishTraverse
 from zope.publisher.interfaces.http import IHTTPApplicationRequest
@@ -104,7 +100,3 @@
         nonempty sequence of names), then the publisher will try to adjust
         the base href.
         """
-
-
-class IBrowserView(IView):
-    """Browser View"""


=== Zope3/src/zope/publisher/interfaces/ftp.py 1.3 => 1.4 ===
--- Zope3/src/zope/publisher/interfaces/ftp.py:1.3	Fri Nov 21 12:12:38 2003
+++ Zope3/src/zope/publisher/interfaces/ftp.py	Fri Mar 19 15:26:44 2004
@@ -15,12 +15,8 @@
 
 $Id$
 """
-
 from zope.interface import Interface
 
-from zope.component.interfaces import IPresentation
-from zope.component.interfaces import IView
-
 from zope.publisher.interfaces import IPublishTraverse
 from zope.publisher.interfaces import IRequest
 
@@ -38,174 +34,5 @@
         """Cause a FTP-based unautorized error message"""
 
 
-class IFTPPresentation(IPresentation):
-    """FTP presentations"""
-
-
-class IFTPView(IFTPPresentation, IView):
-    "FTP View"
-
-
 class IFTPPublisher(IPublishTraverse):
     """FTP Publisher"""
-
-
-class IFTPDirectoryPublisher(IFTPPublisher, IFTPView):
-
-    def type(name):
-        """Return the file type at the given name
-
-        The return valie is 'd', for a directory, 'f', for a file, and
-        None if there is no file at the path.
-        """
-
-    def names(filter=None):
-        """Return a sequence of the names in a directory
-
-        If the filter is not None, include only those names for which
-        the filter returns a true value.
-        """
-
-    def ls(filter=None):
-        """Return a sequence of information objects
-
-        Return item info objects (see lsinfo) for the files in a directory.
-
-        If the filter is not None, include only those names for which
-        the filter returns a true value.
-        """
-        return list(tuple(str, str))
-
-    def readfile(name, outstream, start=0, end=None):
-        """Outputs the file at name to a stream.
-
-        Data are copied starting from start. If end is not None,
-        data are copied up to end.
-
-        """
-
-    def lsinfo(name):
-        """Return information for a unix-style ls listing for the path
-
-        Data are returned as a dictionary containing the following keys:
-
-        type
-
-           The path type, either 'd' or 'f'.
-
-        owner_name
-
-           Defaults to "na". Must not include spaces.
-
-        owner_readable
-
-           defaults to True
-
-        owner_writable
-
-           defaults to True
-
-        owner_executable
-
-           defaults to True for directories and false otherwise.
-
-        group_name
-
-           Defaults to "na". Must not include spaces.
-
-        group_readable
-
-           defaults to True
-
-        group_writable
-
-           defaults to True
-
-        group_executable
-
-           defaults to True for directories and false otherwise.
-
-        other_readable
-
-           defaults to False
-
-        other_writable
-
-           defaults to False
-
-        other_executable
-
-           defaults to True for directories and false otherwise.
-
-        mtime
-
-           Optional time, as a datetime.
-
-        nlinks
-
-           The number of links. Defaults to 1.
-
-        size
-
-           The file size.  Defaults to 0.
-
-        name
-
-           The file name.
-        """
-
-    def mtime(name):
-        """Return the modification time for the file
-
-        Return None if it is unknown.
-        """
-
-    def size(name):
-        """Return the size of the file at path
-        """
-
-    def mkdir(name):
-        """Create a directory.
-        """
-
-    def remove(name):
-        """Remove a file. Same as unlink.
-        """
-
-    def rmdir(name):
-        """Remove a directory.
-        """
-
-    def rename(old, new):
-        """Rename a file or directory.
-        """
-
-    def writefile(name, instream, start=None, end=None, append=False):
-        """Write data to a file.
-
-        If start or end is not None, then only part of the file is
-        written. The remainder of the file is unchanged.
-        If start or end are specified, they must ne non-negative.
-
-        If end is None, then the file is truncated after the data are
-        written.  If end is not None, parts of the file after end, if
-        any, are unchanged.  If end is not None and there isn't enough
-        data in instream to fill out the file, then the missing data
-        are undefined.
-
-        If neither start nor end are specified, then the file contents
-        are overwritten.
-
-        If start is specified and the file doesn't exist or is shorter
-        than start, the file will contain undefined data before start.
-
-        If append is true, start and end are ignored.
-        """
-
-    def writable(name):
-        """Return boolean indicating whether a file at path is writable
-
-        Note that a true value should be returned if the file doesn't
-        exist but it's directory is writable.
-
-        """


=== Zope3/src/zope/publisher/interfaces/http.py 1.20 => 1.21 ===
--- Zope3/src/zope/publisher/interfaces/http.py:1.20	Fri Mar 19 13:31:38 2004
+++ Zope3/src/zope/publisher/interfaces/http.py	Fri Mar 19 15:26:44 2004
@@ -15,7 +15,6 @@
 
 $Id$
 """
-
 from zope.interface import Interface
 from zope.interface import Attribute
 
@@ -24,18 +23,6 @@
 from zope.publisher.interfaces import IPublishTraverse
 from zope.publisher.interfaces import IRequest
 from zope.publisher.interfaces import IResponse
-
-from zope.component.interfaces import IPresentation
-from zope.component.interfaces import IResource
-from zope.component.interfaces import IView
-
-
-class IHTTPPresentation(IPresentation):
-    """HTTP presentations are for interaction with users using Web HTTPs
-    """
-
-class IHTTPView(IHTTPPresentation, IView):
-    """HTTP View"""
 
 
 class IVirtualHostRequest(Interface):


=== Zope3/src/zope/publisher/interfaces/xmlrpc.py 1.5 => 1.6 ===
--- Zope3/src/zope/publisher/interfaces/xmlrpc.py:1.5	Wed Mar 17 13:25:00 2004
+++ Zope3/src/zope/publisher/interfaces/xmlrpc.py	Fri Mar 19 15:26:44 2004
@@ -15,9 +15,6 @@
 
 $Id$
 """
-from zope.component.interfaces import IView
-
-from zope.component.interfaces import IPresentation
 from zope.publisher.interfaces import IPublication
 from zope.publisher.interfaces import IPublishTraverse
 from zope.publisher.interfaces.http import IHTTPRequest
@@ -36,13 +33,6 @@
         Allows a default view to be added to traversal.
         Returns (ob, steps_reversed).
         """
-
-class IXMLRPCPresentation(IPresentation):
-    """XML-RPC presentation
-    """
-
-class IXMLRPCView(IXMLRPCPresentation, IView):
-    """XMLRPC View"""
 
 class IXMLRPCRequest(IHTTPRequest):
     """XML-RPC Request




More information about the Zope3-Checkins mailing list