[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/VFS - IVFSPresentation.py:1.1.2.1 IVFSView.py:1.1.2.1 IVFSPublisher.py:1.1.4.1.10.1 VFSRequest.py:1.1.4.1.10.2 metaConfigure.py:1.1.4.2.8.3

Jim Fulton jim@zope.com
Sun, 2 Jun 2002 10:34:59 -0400


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

Modified Files:
      Tag: Zope3InWonderland-branch
	IVFSPublisher.py VFSRequest.py metaConfigure.py 
Added Files:
      Tag: Zope3InWonderland-branch
	IVFSPresentation.py IVFSView.py 
Log Message:
- Added template attribute to allow views to be created from a
  template source file.

- Added beginnings of a Zope debugger. This required seperating site
  and server configuration.

- Added the ability to specify a config file package in the
  zopeConfigure directive. Made "config.zcml" a default for the file
  attribute in the include directive.

- Fixed mapply to unwrap proxied objects. This was necessary once
  views became wrapped in proxies. We need to investigate why they
  weren't being wrapped before. 

- I updated enough system page templates and zcml directives so that:

  - Zope now starts. :)

  - The root folder contents listing can be viewed.

  Many more templates and zcml files need to be updated to reflect the
  way views are now handled.



=== Added File Zope3/lib/python/Zope/Publisher/VFS/IVFSPresentation.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: IVFSPresentation.py,v 1.1.2.1 2002/06/02 14:34:58 jim Exp $
"""

from Zope.ComponentArchitecture.IPresentation import IPresentation

class IVFSPresentation(IPresentation):
    """VFS presentations
    """



=== Added File Zope3/lib/python/Zope/Publisher/VFS/IVFSView.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: IVFSView.py,v 1.1.2.1 2002/06/02 14:34:58 jim Exp $
"""

from Zope.ComponentArchitecture.IView import IView
from IVFSPresentation import IVFSPresentation

class IVFSView(IVFSPresentation, IView):
    "Browser View"



=== Zope3/lib/python/Zope/Publisher/VFS/IVFSPublisher.py 1.1.4.1 => 1.1.4.1.10.1 ===
 $Id$
 """
-from Interface import Interface
+from Zope.Publisher.IPublishTraverse import IPublishTraverse
 
-class IVFSPublisher(Interface):
-
-    def publishTraverse(request, name):
-        """Lookup a name
-
-        The request argument is the publisher request object.
-        """
+class IVFSPublisher(IPublishTraverse):
+    """VFS Publisher"""


=== Zope3/lib/python/Zope/Publisher/VFS/VFSRequest.py 1.1.4.1.10.1 => 1.1.4.1.10.2 ===
 
 from Zope.Publisher.BaseRequest import BaseRequest
-from IVFSPublisher import IVFSPublisher
+from IVFSView import IVFSView
 from IVFSCredentials import IVFSCredentials
 
 from VFSResponse import VFSResponse
@@ -27,8 +27,8 @@
     __implements__ = BaseRequest.__implements__, IVFSCredentials
 
     # _presentation_type is overridden from the BaseRequest 
-    # to implement IVFSPublisher
-    _presentation_type = IVFSPublisher
+    # to implement IVFSView
+    _presentation_type = IVFSView
 
 
     def __init__(self, body_instream, outstream, environ, response=None):


=== Zope3/lib/python/Zope/Publisher/VFS/metaConfigure.py 1.1.4.2.8.2 => 1.1.4.2.8.3 ===
     
 def view(_context, **__kw):
-    return _view(_context, type='Zope.Publisher.VFS.IVFSPublisher.', **__kw)
+    return _view(_context, type='Zope.Publisher.VFS.IVFSView.', **__kw)