[Checkins] SVN: zope.publisher/trunk/ Move ``IView`` and ``IBrowserView`` interfaces into ``zope.browser.interfaces``.
Tres Seaver
tseaver at palladion.com
Wed May 13 16:56:33 EDT 2009
Log message for revision 99921:
Move ``IView`` and ``IBrowserView`` interfaces into ``zope.browser.interfaces``.
Leave BBB imports in place.
Changed:
U zope.publisher/trunk/CHANGES.txt
U zope.publisher/trunk/setup.py
U zope.publisher/trunk/src/zope/publisher/interfaces/__init__.py
U zope.publisher/trunk/src/zope/publisher/interfaces/browser.py
-=-
Modified: zope.publisher/trunk/CHANGES.txt
===================================================================
--- zope.publisher/trunk/CHANGES.txt 2009-05-13 20:53:38 UTC (rev 99920)
+++ zope.publisher/trunk/CHANGES.txt 2009-05-13 20:56:32 UTC (rev 99921)
@@ -1,9 +1,11 @@
CHANGES
=======
-3.6.5 (unreleased)
+3.7.0 (unreleased)
------------------
+- Move ``IView`` and ``IBrowserView`` interfaces into
+ ``zope.browser.interfaces``, leaving BBB imports.
3.6.4 (2009-04-26)
------------------
Modified: zope.publisher/trunk/setup.py
===================================================================
--- zope.publisher/trunk/setup.py 2009-05-13 20:53:38 UTC (rev 99920)
+++ zope.publisher/trunk/setup.py 2009-05-13 20:56:32 UTC (rev 99921)
@@ -23,7 +23,7 @@
"""
setup(name='zope.publisher',
- version='3.6.5dev',
+ version='3.7.0dev',
url='http://pypi.python.org/pypi/zope.publisher',
license='ZPL 2.1',
author='Zope Corporation and Contributors',
@@ -41,6 +41,7 @@
namespace_packages=['zope',],
install_requires=['setuptools',
'zope.authentication',
+ 'zope.browser',
'zope.component',
'zope.event',
'zope.exceptions',
@@ -49,7 +50,8 @@
'zope.location',
'zope.proxy',
'zope.security',
- 'zope.testing'],
+ 'zope.testing',
+ ],
include_package_data=True,
zip_safe=False,
Modified: zope.publisher/trunk/src/zope/publisher/interfaces/__init__.py
===================================================================
--- zope.publisher/trunk/src/zope/publisher/interfaces/__init__.py 2009-05-13 20:53:38 UTC (rev 99920)
+++ zope.publisher/trunk/src/zope/publisher/interfaces/__init__.py 2009-05-13 20:56:32 UTC (rev 99921)
@@ -1,6 +1,6 @@
##############################################################################
#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# Copyright (c) 2001-2009 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
@@ -16,13 +16,18 @@
$Id$
"""
__docformat__ = "reStructuredText"
-from zope.interface import Interface, Attribute, implements
+
+from zope.browser.interfaces import IView # BBB import
+from zope.interface import Interface
+from zope.interface import Attribute
+from zope.interface import implements
from zope.interface.interfaces import IInterface
from zope.interface.common.mapping import IEnumerableMapping
-from zope.interface.common.interfaces import IException, ILookupError
-from zope.security.interfaces import Unauthorized, IParticipation
+from zope.interface.common.interfaces import IException
+from zope.interface.common.interfaces import ILookupError
+from zope.security.interfaces import IParticipation
+from zope.security.interfaces import Unauthorized
-
class IPublishingException(IException):
pass
@@ -486,13 +491,7 @@
request = Attribute("The request for which the skin was changed.")
-class IView(Interface):
- """Generic view contract"""
- request = Attribute("The request object that requested the view")
- context = Attribute("The context object that the view is for")
-
-
class IDefaultViewName(Interface):
"""A string that contains the default view name
Modified: zope.publisher/trunk/src/zope/publisher/interfaces/browser.py
===================================================================
--- zope.publisher/trunk/src/zope/publisher/interfaces/browser.py 2009-05-13 20:53:38 UTC (rev 99920)
+++ zope.publisher/trunk/src/zope/publisher/interfaces/browser.py 2009-05-13 20:56:32 UTC (rev 99921)
@@ -18,13 +18,14 @@
__docformat__ = "reStructuredText"
-from zope.interface import Attribute, alsoProvides
+from zope.interface import Attribute
+from zope.interface import alsoProvides
+from zope.browser.interfaces import IBrowserView # BBB import
from zope.publisher.interfaces import IPublication
from zope.publisher.interfaces import IPublishTraverse
from zope.publisher.interfaces import ISkinType
from zope.publisher.interfaces import ISkinnable
-from zope.publisher.interfaces import IView
from zope.publisher.interfaces.http import IHTTPApplicationRequest
from zope.publisher.interfaces.http import IHTTPRequest
@@ -113,10 +114,6 @@
the base href.
"""
-class IBrowserView(IView):
- """Browser View"""
-
-
class IBrowserPage(IBrowserView, IBrowserPublisher):
"""Browser page"""
More information about the Checkins
mailing list