[ZCM] [ZC] 453/ 2 Comment "Missing import in ZPublisher/BeforeTraverse.py"

Collector: Zope Bugs, Features, and Patches ... zope-coders@zope.org
Wed, 03 Jul 2002 07:59:14 -0400


Issue #453 Update (Comment) "Missing import in ZPublisher/BeforeTraverse.py"
 Status Pending, Zope/bug+solution critical
To followup, visit:
  http://collector.zope.org/Zope/453

==============================================================
= Comment - Entry #2 by magnus on Jul 3, 2002 7:59 am

Wrong formatting, but I guess you get it... ;)
________________________________________
= Request - Entry #1 by magnus on Jul 3, 2002 7:58 am

--- BeforeTraverse.py.orig      Wed Jul  3 13:52:36 2002
+++ BeforeTraverse.py   Wed Jul  3 13:52:43 2002
@@ -101,6 +101,7 @@
             try:
                 cob(container, request)
             except TypeError:
+                import sys
                 LOG('MultiHook', ERROR, '%s call %s failed.' % (
                     `self._hookname`, `cob`), error=sys.exc_info())
==============================================================