[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/VFS - VFSView.py:1.1 IVFSCredentials.py:1.3 IVFSPresentation.py:1.3 IVFSView.py:1.3 VFSResponse.py:1.3

Stephan Richter srichter@cbu.edu
Sat, 29 Jun 2002 11:41:44 -0400


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

Modified Files:
	IVFSCredentials.py IVFSPresentation.py IVFSView.py 
	VFSResponse.py 
Added Files:
	VFSView.py 
Log Message:
Okay, I fixed the the VFS implementation again. There is quiet some work left 
though. We have to get rid of the _traverse view for folders, then I can do 
some more. Also, I still have to do some general cleanup in the Publisher 
and Traverser.


=== Added File Zope3/lib/python/Zope/Publisher/VFS/VFSView.py ===
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
# 
##############################################################################
"""

$Id: VFSView.py,v 1.1 2002/06/29 15:41:44 srichter Exp $
"""
__metaclass__ = type # All classes are new style when run with Python 2.2+

from IVFSView import IVFSView

class VFSView:

    __implements__ = IVFSView

    def __init__(self, context, request):
       self.context = context
       self.request = request


=== Zope3/lib/python/Zope/Publisher/VFS/IVFSCredentials.py 1.2 => 1.3 ===
 
     def unauthorized(challenge):
-        """Issue a 401 Unauthorized error (asking for login/password).
-        The challenge is the value of the WWW-Authenticate header."""
+        """Cause a FTP-based unautorized error message"""


=== Zope3/lib/python/Zope/Publisher/VFS/IVFSPresentation.py 1.2 => 1.3 ===
 
 class IVFSPresentation(IPresentation):
-    """VFS presentations
-    """
+    """VFS presentations"""
 


=== Zope3/lib/python/Zope/Publisher/VFS/IVFSView.py 1.2 => 1.3 ===
 
 class IVFSView(IVFSPresentation, IView):
-    "Browser View"
+    "VFS View"
 


=== Zope3/lib/python/Zope/Publisher/VFS/VFSResponse.py 1.2 => 1.3 ===
 
     def getResult(self):
-        """ """
         if getattr(self, '_exc', None) is not None:
             raise self._exc[0], self._exc[1]
         return self._getBody()
 
 
     def handleException(self, exc_info):
-        """
-        """
         self._exc = exc_info[:2]
-        #import traceback
-        #traceback.print_exc()
+        # import traceback
+        # traceback.print_exc()