[Zope3-checkins] CVS: Zope3/src/zope/exceptions - _notfounderror.py:1.5
Steve Alexander
steve@cat-box.net
Wed, 19 Feb 2003 10:26:29 -0500
Update of /cvs-repository/Zope3/src/zope/exceptions
In directory cvs.zope.org:/tmp/cvs-serv25645/src/zope/exceptions
Modified Files:
_notfounderror.py
Log Message:
Defined INotFound, in order to provide a nice view on 404s.
=== Zope3/src/zope/exceptions/_notfounderror.py 1.4 => 1.5 ===
--- Zope3/src/zope/exceptions/_notfounderror.py:1.4 Tue Feb 11 11:00:06 2003
+++ Zope3/src/zope/exceptions/_notfounderror.py Wed Feb 19 10:25:58 2003
@@ -16,12 +16,12 @@
"""
from zope.exceptions import ZopeError, IZopeError
from zope.interface.common.interfaces import IKeyError
-from zope.interface.implements import implements
+
+class INotFoundError(IZopeError, IKeyError):
+ pass
class NotFoundError(ZopeError, KeyError):
"""A resource could not be found.
"""
-class INotFoundError(IZopeError, IKeyError):
- pass
+ __implements__ = INotFoundError
-implements(NotFoundError, INotFoundError)