[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/Browser - BrowserView.py:1.1.4.1 IBrowserPresentation.py:1.1.4.1 IBrowserView.py:1.1.4.1 BrowserRequest.py:1.1.4.13 IBrowserPublisher.py:1.1.2.11 browser-meta.zcml:NONE browser.zcml:NONE metaConfigure.py:NONE

Jim Fulton jim@zope.com
Fri, 7 Jun 2002 10:41:58 -0400


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

Modified Files:
      Tag: Zope-3x-branch
	BrowserRequest.py IBrowserPublisher.py 
Added Files:
      Tag: Zope-3x-branch
	BrowserView.py IBrowserPresentation.py IBrowserView.py 
Removed Files:
      Tag: Zope-3x-branch
	browser-meta.zcml browser.zcml metaConfigure.py 
Log Message:
Merging in Zope3InWonderland-branch, which implemented the following
proposals (see
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/OldProposals): 
- RenameAllowToRequire

- GroupClassRelatedDirectivesInClassDirective

- ViewInterfaceAndSimplification

- ConsistentUseOfSpacesAsDelimitersInZCMLAttributes

- TwoArgumentViewConstructors

- ImplementsInZCML

- SimpleViewCreationInZCML

- RemoveGetView

- ReplaceProtectWithAllow

- ViewMethodsAsViews

- MergeProtectionAndComponentDefinitions

There were also various security fixes resulting of better integration
of security with components.


=== Added File Zope3/lib/python/Zope/Publisher/Browser/BrowserView.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: BrowserView.py,v 1.1.4.1 2002/06/07 14:41:26 jim Exp $
"""
__metaclass__ = type # All classes are new style when run with Python 2.2+

from IBrowserView import IBrowserView

class BrowserView:

    __implements__ = IBrowserView

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



=== Added File Zope3/lib/python/Zope/Publisher/Browser/IBrowserPresentation.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: IBrowserPresentation.py,v 1.1.4.1 2002/06/07 14:41:26 jim Exp $
"""

from Zope.ComponentArchitecture.IPresentation import IPresentation

class IBrowserPresentation(IPresentation):
    """Browser presentations are for interaction with user's using Web Browsers
    """



=== Added File Zope3/lib/python/Zope/Publisher/Browser/IBrowserView.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: IBrowserView.py,v 1.1.4.1 2002/06/07 14:41:26 jim Exp $
"""

from Zope.ComponentArchitecture.IView import IView
from IBrowserPresentation import IBrowserPresentation

class IBrowserView(IBrowserPresentation, IView):
    "Browser View"



=== Zope3/lib/python/Zope/Publisher/Browser/BrowserRequest.py 1.1.4.12 => 1.1.4.13 ===
 
 from cgi import FieldStorage
-from urllib import quote, unquote, splittype, splitport
 from cgi_names import isCGI_NAME, hide_key
 from Zope.Publisher.Converters import get_converter
 from Zope.Publisher.HTTP.HTTPRequest import HTTPRequest
-from IBrowserPublisher import IBrowserPublisher
+from IBrowserPresentation import IBrowserPresentation
 
 from IBrowserRequest import IBrowserRequest
 from IBrowserPublication import IBrowserPublication
@@ -57,9 +56,9 @@
     use_redirect = 0 # Set this to 1 in a subclass to redirect GET
                      # requests when the effective and actual URLs differ.
 
-    # _viewtype is overridden from the BaseRequest 
-    #  to implement IBrowserPublisher
-    _viewtype = IBrowserPublisher
+    # _presentation_type is overridden from the BaseRequest 
+    #  to implement IBrowserPresentation
+    _presentation_type = IBrowserPresentation
 
     
 
@@ -579,4 +578,5 @@
         L1.sort()
         return ', '.join(
             map(lambda item: "%s: %s" % (item[0], repr(item[1])), L1))
-    
\ No newline at end of file
+    
+


=== Zope3/lib/python/Zope/Publisher/Browser/IBrowserPublisher.py 1.1.2.10 => 1.1.2.11 ===
 # 
 ##############################################################################
-from Interface import Interface
+from Zope.Publisher.IPublishTraverse import IPublishTraverse
 
-class IBrowserPublisher(Interface):
-
-    def publishTraverse(request, name):
-        """Lookup a name
-
-        The request argument is the publisher request object.
-        """
+class IBrowserPublisher(IPublishTraverse):
 
     def browserDefault(request):
         """Provide the default object

=== Removed File Zope3/lib/python/Zope/Publisher/Browser/browser-meta.zcml ===

=== Removed File Zope3/lib/python/Zope/Publisher/Browser/browser.zcml ===

=== Removed File Zope3/lib/python/Zope/Publisher/Browser/metaConfigure.py ===