[Zope3-checkins] CVS: Zope3/src/zope/publisher/interfaces - vfs.py:1.1.2.3
Guido van Rossum
guido@python.org
Mon, 23 Dec 2002 16:23:48 -0500
Update of /cvs-repository/Zope3/src/zope/publisher/interfaces
In directory cvs.zope.org:/tmp/cvs-serv10107
Modified Files:
Tag: NameGeddon-branch
vfs.py
Log Message:
Reorder interfaces -- the zope.publisher tests didn't depend on this,
but the zope.server tests do.
=== Zope3/src/zope/publisher/interfaces/vfs.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/publisher/interfaces/vfs.py:1.1.2.2 Mon Dec 23 16:04:47 2002
+++ Zope3/src/zope/publisher/interfaces/vfs.py Mon Dec 23 16:23:48 2002
@@ -11,16 +11,62 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""
+"""Virtual File System interfaces for the publisher.
$Id$
"""
+from zope.interface import Interface
+from zope.component.interfaces import IPresentation
+from zope.component.interfaces import IView
-class IVFSDirectoryPublisher(IVFSObjectPublisher):
+from zope.publisher.interfaces import IPublishTraverse
+
+
+class IVFSCredentials(Interface):
+
+ # XXX Eventually this will be a different method
+ def _authUserPW():
+ """Return (login, password) if there are basic credentials;
+ return None if there aren't."""
+
+ def unauthorized(challenge):
+ """Cause a FTP-based unautorized error message"""
+
+
+class IVFSPresentation(IPresentation):
+ """VFS presentations"""
+
+
+class IVFSView(IVFSPresentation, IView):
+ "VFS View"
+
+
+class IVFSPublisher(IPublishTraverse):
+ """VFS Publisher"""
+
+
+class IVFSObjectPublisher(IVFSPublisher):
""" """
+ def isdir():
+ """Returns true, if the object is a container, namely implements
+ IContainer. For all other cases it returns false.
+ """
+
+ def isfile():
+ """Returns always the oposite of isdir() for the same reasons.
+ """
+
+ def stat():
+ """This method should return the typical file stat information:
+ (mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime)
+ """
+
+
+class IVFSDirectoryPublisher(IVFSObjectPublisher):
+
def exists(name):
"""Checks whether the name exists.
"""
@@ -56,12 +102,6 @@
"""
-"""
-
-$Id$
-"""
-
-
class IVFSFilePublisher(IVFSObjectPublisher):
"""This interface describes the necessary methods a VFS view has to
implement in order to be used by teh VFS.
@@ -73,80 +113,4 @@
def write(mode, instream, start=0):
"""Write data specified in instream to object.
- """
-
-
-"""
-
-$Id$
-"""
-
-from zope.component.interfaces import IPresentation
-
-class IVFSPresentation(IPresentation):
- """VFS presentations"""
-
-
-
-"""
-
-$Id$
-"""
-
-from zope.component.interfaces import IView
-
-
-class IVFSView(IVFSPresentation, IView):
- "VFS View"
-
-
-
-"""
-
-$Id$
-"""
-from zope.publisher.interfaces import IPublishTraverse
-
-class IVFSPublisher(IPublishTraverse):
- """VFS Publisher"""
-
-
-"""
-
-$Id$
-"""
-from zope.interface import Interface
-
-class IVFSCredentials(Interface):
-
- # XXX Eventually this will be a different method
- def _authUserPW():
- """Return (login, password) if there are basic credentials;
- return None if there aren't."""
-
- def unauthorized(challenge):
- """Cause a FTP-based unautorized error message"""
-
-
-"""
-
-$Id$
-"""
-
-
-class IVFSObjectPublisher(IVFSPublisher):
- """ """
-
- def isdir():
- """Returns true, if the object is a container, namely implements
- IContainer. For all other cases it returns false.
- """
-
- def isfile():
- """Returns always the oposite of isdir() for the same reasons.
- """
-
- def stat():
- """This method should return the typical file stat information:
- (mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime)
"""