[Checkins] SVN: zope.app.exception/trunk/ - ``ISystemErrorView`` interface has been moved to ``zope.browser.interfaces``, leaving BBB import here.

Michael Howitz mh at gocept.com
Mon May 18 13:09:10 EDT 2009


Log message for revision 100078:
  - ``ISystemErrorView`` interface has been moved to ``zope.browser.interfaces``, leaving BBB import here.
  

Changed:
  U   zope.app.exception/trunk/CHANGES.txt
  U   zope.app.exception/trunk/setup.py
  U   zope.app.exception/trunk/src/zope/app/exception/interfaces.py
  U   zope.app.exception/trunk/src/zope/app/exception/systemerror.py

-=-
Modified: zope.app.exception/trunk/CHANGES.txt
===================================================================
--- zope.app.exception/trunk/CHANGES.txt	2009-05-18 17:03:47 UTC (rev 100077)
+++ zope.app.exception/trunk/CHANGES.txt	2009-05-18 17:08:59 UTC (rev 100078)
@@ -1,10 +1,11 @@
 CHANGES
 =======
 
-3.5.1 (unreleased)
+3.6.0 (unreleased)
 ------------------
 
-- Nothing changed yet.
+- ``ISystemErrorView`` interface has been moved to
+  ``zope.browser.interfaces``, leaving BBB import here.
 
 
 3.5.0 (2009-04-06)
@@ -12,9 +13,9 @@
 
 - Use new ``zope.authentication`` instead of ``zope.app.security``.
 
-- Remove deprecated code and thus remove dependency on zope.deferredimport.
+- Removed deprecated code and thus removed dependency on zope.deferredimport.
 
-- Remove old zpkg-related SETUP.cfg file.
+- Removed old zpkg-related SETUP.cfg file.
 
 3.4.2 (2009-01-27)
 ------------------

Modified: zope.app.exception/trunk/setup.py
===================================================================
--- zope.app.exception/trunk/setup.py	2009-05-18 17:03:47 UTC (rev 100077)
+++ zope.app.exception/trunk/setup.py	2009-05-18 17:08:59 UTC (rev 100078)
@@ -21,7 +21,7 @@
 def read(*rnames):
     return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
 
-version = '3.5.1dev'
+version = '3.6.0dev'
 
 setup(name='zope.app.exception',
       version=version,
@@ -65,6 +65,7 @@
                         'zope.formlib',
                         'zope.interface',
                         'zope.publisher',
+                        'zope.browser>=1.2',
                         ],
       include_package_data = True,
       zip_safe = False,

Modified: zope.app.exception/trunk/src/zope/app/exception/interfaces.py
===================================================================
--- zope.app.exception/trunk/src/zope/app/exception/interfaces.py	2009-05-18 17:03:47 UTC (rev 100077)
+++ zope.app.exception/trunk/src/zope/app/exception/interfaces.py	2009-05-18 17:08:59 UTC (rev 100078)
@@ -1,7 +1,7 @@
 ##############################################################################
 # Copyright (c) 2003 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
@@ -15,13 +15,5 @@
 """
 __docformat__ = 'restructuredtext'
 
-from zope.interface import Interface
-
-
-class ISystemErrorView(Interface):
-    """Error views that can classify their contexts as system errors
-    """
-
-    def isSystemError():
-        """Return a boolean indicating whether the error is a system errror
-        """
+# BBB
+from zope.browser.interfaces import ISystemErrorView

Modified: zope.app.exception/trunk/src/zope/app/exception/systemerror.py
===================================================================
--- zope.app.exception/trunk/src/zope/app/exception/systemerror.py	2009-05-18 17:03:47 UTC (rev 100077)
+++ zope.app.exception/trunk/src/zope/app/exception/systemerror.py	2009-05-18 17:08:59 UTC (rev 100078)
@@ -17,11 +17,11 @@
 """
 
 import zope.interface
-import zope.app.exception.interfaces
+import zope.browser.interfaces
 
 class SystemErrorView:
-    zope.interface.implements(zope.app.exception.interfaces.ISystemErrorView)
+    zope.interface.implements(zope.browser.interfaces.ISystemErrorView)
 
     def isSystemError(self):
         return True
-    
+



More information about the Checkins mailing list