[Zope3-checkins] CVS: Zope3/src/zope/app/http/exception - notfound.py:1.4 unauthorized.py:1.3

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Mar 13 18:34:59 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/http/exception
In directory cvs.zope.org:/tmp/cvs-serv1277/src/zope/app/http/exception

Modified Files:
	notfound.py unauthorized.py 
Log Message:


Moved a few HTTP-related interfaces to zope.app.http.interfaces, where they
belong.




=== Zope3/src/zope/app/http/exception/notfound.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/http/exception/notfound.py:1.3	Mon Jun 23 13:17:05 2003
+++ Zope3/src/zope/app/http/exception/notfound.py	Sat Mar 13 18:34:28 2004
@@ -11,16 +11,14 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Not found Exception
 
 $Id$
 """
-__metaclass__ = type
-
-from zope.app.interfaces.http import IHTTPException
+from zope.app.http.interfaces import IHTTPException
 from zope.interface import implements
 
-class NotFound:
+class NotFound(object):
 
     implements(IHTTPException)
 
@@ -29,7 +27,8 @@
         self.request = request
 
     def __call__(self):
-        if self.request.method in ['MKCOL'] and self.request.getTraversalStack():
+        if self.request.method in ['MKCOL'] and \
+               self.request.getTraversalStack():
             # MKCOL with non-existing parent.
             self.request.response.setStatus(409)
         else:


=== Zope3/src/zope/app/http/exception/unauthorized.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/http/exception/unauthorized.py:1.2	Fri Jun  6 16:55:09 2003
+++ Zope3/src/zope/app/http/exception/unauthorized.py	Sat Mar 13 18:34:29 2004
@@ -11,16 +11,14 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Unauthorized Exception
 
 $Id$
 """
-__metaclass__ = type
-
-from zope.app.interfaces.http import IHTTPException
+from zope.app.http.interfaces import IHTTPException
 from zope.interface import implements
 
-class Unauthorized:
+class Unauthorized(object):
 
     implements(IHTTPException)
 




More information about the Zope3-Checkins mailing list