[Zope3-checkins]
SVN: Zope3/trunk/src/zope/server/http/publisherhttpserver.py
Made the post-mortem-debugging HTTP server a little easier to use
Jim Fulton
jim at zope.com
Tue Jul 26 12:32:55 EDT 2005
Log message for revision 37431:
Made the post-mortem-debugging HTTP server a little easier to use
by restoring the interaction.
Changed:
U Zope3/trunk/src/zope/server/http/publisherhttpserver.py
-=-
Modified: Zope3/trunk/src/zope/server/http/publisherhttpserver.py
===================================================================
--- Zope3/trunk/src/zope/server/http/publisherhttpserver.py 2005-07-26 15:46:28 UTC (rev 37430)
+++ Zope3/trunk/src/zope/server/http/publisherhttpserver.py 2005-07-26 16:32:55 UTC (rev 37431)
@@ -17,6 +17,7 @@
"""
from zope.server.http.httpserver import HTTPServer
from zope.publisher.publish import publish
+import zope.security.management
class PublisherHTTPServer(HTTPServer):
@@ -74,6 +75,10 @@
import sys, pdb
print "%s:" % sys.exc_info()[0]
print sys.exc_info()[1]
- pdb.post_mortem(sys.exc_info()[2])
- raise
+ zope.security.management.restoreInteraction()
+ try:
+ pdb.post_mortem(sys.exc_info()[2])
+ raise
+ finally:
+ zope.security.management.endInteraction()
More information about the Zope3-Checkins
mailing list