[Zope3-checkins] SVN: Zope3/branches/3.2/ Issue 665: ZCML swallowing KeyboardInterrupt / SystemExit.

Tres Seaver tseaver at palladion.com
Mon Jul 3 21:26:29 EDT 2006


Log message for revision 68962:
  Issue 665:  ZCML swallowing KeyboardInterrupt / SystemExit.

Changed:
  U   Zope3/branches/3.2/doc/CHANGES.txt
  U   Zope3/branches/3.2/src/zope/configuration/config.py
  U   Zope3/branches/3.2/src/zope/configuration/xmlconfig.py

-=-
Modified: Zope3/branches/3.2/doc/CHANGES.txt
===================================================================
--- Zope3/branches/3.2/doc/CHANGES.txt	2006-07-03 14:57:00 UTC (rev 68961)
+++ Zope3/branches/3.2/doc/CHANGES.txt	2006-07-04 01:26:28 UTC (rev 68962)
@@ -10,6 +10,8 @@
 
     Bug fixes
 
+      - Fixed issue 665: ZCML swallowing KeyboardInterrupt / SystemExit.
+
       - Fixed issue 529: Undo Principal Transactions doesn't work with
         non-root principals
 

Modified: Zope3/branches/3.2/src/zope/configuration/config.py
===================================================================
--- Zope3/branches/3.2/src/zope/configuration/config.py	2006-07-03 14:57:00 UTC (rev 68961)
+++ Zope3/branches/3.2/src/zope/configuration/config.py	2006-07-04 01:26:28 UTC (rev 68962)
@@ -610,6 +610,8 @@
                     continue
                 try:
                     callable(*args, **kw)
+                except (KeyboardInterrupt, SystemExit):
+                    raise
                 except:
                     if testing:
                         raise

Modified: Zope3/branches/3.2/src/zope/configuration/xmlconfig.py
===================================================================
--- Zope3/branches/3.2/src/zope/configuration/xmlconfig.py	2006-07-03 14:57:00 UTC (rev 68961)
+++ Zope3/branches/3.2/src/zope/configuration/xmlconfig.py	2006-07-04 01:26:28 UTC (rev 68962)
@@ -220,6 +220,8 @@
 
         try:
             self.context.begin(name, data, info)
+        except (KeyboardInterrupt, SystemExit):
+            raise
         except:
             if self.testing:
                 raise
@@ -324,6 +326,8 @@
 
         try:
             self.context.end()
+        except (KeyboardInterrupt, SystemExit):
+            raise
         except:
             if self.testing:
                 raise



More information about the Zope3-Checkins mailing list