[Zope-dev] ZDebug patch for 2.3.0

Itai Tavor itai@optusnet.com.au
Tue, 30 Jan 2001 11:36:04 +1100


Thanks! Good to have ZDebug back. But... it kills LoginManager, which 
uses an exception to render the login page. This patch will fix the 
problem:

--- DTMLDebug.py.old  Fri Sep 15 09:25:14 2000
+++ DTMLDebug.py        Tue Jan 30 10:45:43 2001
@@ -217,6 +217,9 @@
          elif exc_type is DTReturn:
              # Return normally.
              raise
+        elif str(exc_type) == 'LoginRequired':
+            # Don't interfere with LoginManager.
+            raise
          else:
              debugWithNamespace(section, namespace, None, info)
      finally:


Chris Withers wrote:

>The patch below got ZDebug working with Zope 2.3.0 for me. Hope I didn't
>miss anything ;-)
>
>cheers,
>
>Chris

><snip patch>

-- 
--
Itai Tavor                      -- "Je sautille, donc je suis."    --
itai@optusnet.com.au            --               - Kermit the Frog --
-- 'Supposing a tree fell down, Pooh, when we were underneath it?' --
-- 'Supposing it didn't,' said Pooh after careful thought.         --