[Zope3-checkins] SVN: Zope3/trunk/ Fixed issue 407: zope.app.publication.http.MethodNotAllowed.__str__:

Dmitry Vasiliev dima at hlabs.spb.ru
Wed May 18 02:52:18 EDT 2005


Log message for revision 30381:
  Fixed issue 407: zope.app.publication.http.MethodNotAllowed.__str__:
  'request' should be self.request
  

Changed:
  U   Zope3/trunk/doc/CHANGES.txt
  U   Zope3/trunk/src/zope/app/publication/http.py
  U   Zope3/trunk/src/zope/app/publication/tests/test_http.py

-=-
Modified: Zope3/trunk/doc/CHANGES.txt
===================================================================
--- Zope3/trunk/doc/CHANGES.txt	2005-05-17 18:17:20 UTC (rev 30380)
+++ Zope3/trunk/doc/CHANGES.txt	2005-05-18 06:52:18 UTC (rev 30381)
@@ -591,6 +591,9 @@
 
     Bug Fixes
 
+      - Fixed issue #407: zope.app.publication.http.MethodNotAllowed.__str__:
+        'request' should be self.request
+
       - Fixed issue #333: XML Tree doesn't load if some item
         contains non-ASCII characters 
 

Modified: Zope3/trunk/src/zope/app/publication/http.py
===================================================================
--- Zope3/trunk/src/zope/app/publication/http.py	2005-05-17 18:17:20 UTC (rev 30380)
+++ Zope3/trunk/src/zope/app/publication/http.py	2005-05-18 06:52:18 UTC (rev 30381)
@@ -15,11 +15,13 @@
 
 $Id$
 """
+
 __docformat__ = 'restructuredtext'
+
 from zope.publisher.publish import mapply
 
 from zope.app import zapi
-from zope.interface import Interface, implements, Attribute
+from zope.interface import implements, Attribute
 from zope.interface.common.interfaces import IException
 from zope.app.http.interfaces import IHTTPException
 from zope.app.publication.zopepublication import ZopePublication
@@ -43,7 +45,7 @@
         self.request = request
 
     def __str__(self):
-        return "%r, %r" % (object, request)
+        return "%r, %r" % (self.object, self.request)
 
 
 class BaseHTTPPublication(ZopePublication):

Modified: Zope3/trunk/src/zope/app/publication/tests/test_http.py
===================================================================
--- Zope3/trunk/src/zope/app/publication/tests/test_http.py	2005-05-17 18:17:20 UTC (rev 30380)
+++ Zope3/trunk/src/zope/app/publication/tests/test_http.py	2005-05-18 06:52:18 UTC (rev 30381)
@@ -23,7 +23,6 @@
 from zope.publisher.interfaces.http import IHTTPRequest
 
 import zope.app.publication.http
-from zope.app import zapi
 from zope.app.testing import ztapi
 from zope.app.testing.placelesssetup import PlacelessSetup
 



More information about the Zope3-Checkins mailing list