[Checkins] SVN: zope.browser/trunk/ - Moved ``ISystemErrorView`` interface here from

Michael Howitz mh at gocept.com
Mon May 18 13:02:53 EDT 2009


Log message for revision 100074:
  - Moved ``ISystemErrorView`` interface here from
    ``zope.app.exception`` to break undesirable dependencies.
  
  - Fixed home page and author's e-mail address.
  
  - Added doctests to long_description.
  
  

Changed:
  U   zope.browser/trunk/CHANGES.txt
  U   zope.browser/trunk/README.txt
  U   zope.browser/trunk/setup.py
  U   zope.browser/trunk/src/zope/browser/README.txt
  U   zope.browser/trunk/src/zope/browser/interfaces.py

-=-
Modified: zope.browser/trunk/CHANGES.txt
===================================================================
--- zope.browser/trunk/CHANGES.txt	2009-05-18 15:57:28 UTC (rev 100073)
+++ zope.browser/trunk/CHANGES.txt	2009-05-18 17:02:53 UTC (rev 100074)
@@ -1,11 +1,17 @@
-zope.browser Changelog
-======================
+Changelog
+=========
 
 1.2 (unreleased)
 ----------------
 
-- TBD
+- Moved ``ISystemErrorView`` interface here from
+  ``zope.app.exception`` to break undesirable dependencies.
 
+- Fixed home page and author's e-mail address.
+
+- Added doctests to long_description.
+
+
 1.1 (2009-05-13)
 ----------------
 

Modified: zope.browser/trunk/README.txt
===================================================================
--- zope.browser/trunk/README.txt	2009-05-18 15:57:28 UTC (rev 100073)
+++ zope.browser/trunk/README.txt	2009-05-18 17:02:53 UTC (rev 100074)
@@ -1,6 +1,4 @@
-zope.browesr README
-===================
-
-This package provides shared browser components for the Zope Toolkit.
-
-Please see ``src/zope/browser/README.txt`` for details.
+zope.browser
+============
+
+This package provides shared browser components for the Zope Toolkit.

Modified: zope.browser/trunk/setup.py
===================================================================
--- zope.browser/trunk/setup.py	2009-05-18 15:57:28 UTC (rev 100073)
+++ zope.browser/trunk/setup.py	2009-05-18 17:02:53 UTC (rev 100074)
@@ -26,10 +26,12 @@
 setup(name='zope.browser',
     version = '1.2dev',
     author='Zope Corporation and Contributors',
-    author_email='zope3-dev at zope.org',
+    author_email='zope-dev at zope.org',
     description='Shared Zope Toolkit browser components',
     long_description=(
         read('README.txt')
+        + '\n\n.. contents::\n\n' +
+        read('src', 'zope', 'browser', 'README.txt')
         + '\n\n' +
         read('CHANGES.txt')
         ),
@@ -45,7 +47,7 @@
         'Operating System :: OS Independent',
         'Topic :: Internet :: WWW/HTTP',
         'Framework :: Zope3'],
-    url='http://cheeseshop.python.org/pypi/zope.browser',
+    url='http://pypi.python.org/pypi/zope.browser',
     packages=find_packages('src'),
     package_dir = {'': 'src'},
     namespace_packages=['zope',],

Modified: zope.browser/trunk/src/zope/browser/README.txt
===================================================================
--- zope.browser/trunk/src/zope/browser/README.txt	2009-05-18 15:57:28 UTC (rev 100073)
+++ zope.browser/trunk/src/zope/browser/README.txt	2009-05-18 17:02:53 UTC (rev 100074)
@@ -6,8 +6,6 @@
 There is not much we can test except that ``IView`` is importable
 and an interface:
 
-.. doctest::
-
   >>> from zope.interface import Interface
   >>> from zope.browser.interfaces import IView
   >>> Interface.providedBy(IView)
@@ -22,8 +20,6 @@
 There is not much we can test except that ``IBrowserView`` is importable
 and an interface derived from ``IView``:
 
-.. doctest::
-
   >>> from zope.interface import Interface
   >>> from zope.browser.interfaces import IBrowserView
   >>> Interface.providedBy(IBrowserView)
@@ -39,8 +35,6 @@
 There is not much we can test except that ``IAdding`` is importable
 and an interface derived from ``IBrowserView``:
 
-.. doctest::
-
   >>> from zope.interface import Interface
   >>> from zope.browser.interfaces import IAdding
   >>> Interface.providedBy(IBrowserView)
@@ -63,9 +57,22 @@
 There is not much we can test except that ITerms is importable
 and an interface:
 
-.. doctest::
-
   >>> from zope.interface import Interface
   >>> from zope.browser.interfaces import ITerms
   >>> Interface.providedBy(ITerms)
   True
+
+ISystemErrorView
+----------------
+
+Views providing this interface can classify their contexts as system
+errors. These errors can be handled in a special way (e. g. more
+detailed logging).
+
+There is not much we can test except that ISystemErrorView is importable
+and an interface:
+
+  >>> from zope.interface import Interface
+  >>> from zope.browser.interfaces import ISystemErrorView
+  >>> Interface.providedBy(ISystemErrorView)
+  True

Modified: zope.browser/trunk/src/zope/browser/interfaces.py
===================================================================
--- zope.browser/trunk/src/zope/browser/interfaces.py	2009-05-18 15:57:28 UTC (rev 100073)
+++ zope.browser/trunk/src/zope/browser/interfaces.py	2009-05-18 17:02:53 UTC (rev 100074)
@@ -26,7 +26,7 @@
 
 class IBrowserView(IView):
     """ Views which are specialized for requests from a browser
-    
+
     o Such views are distinct from those geerated via WebDAV, FTP, XML-RPC,
       etc..
     """
@@ -40,7 +40,7 @@
         """Add content object to context.
 
         Add using the name in `contentName`.
-        
+
         Return the added object in the context of its container.
 
         If `contentName` is already used in container, raise
@@ -99,3 +99,11 @@
 
         LookupError is raised if there isn't a value in the source.
         """
+
+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
+        """



More information about the Checkins mailing list