[Zope-Checkins] CVS: Zope/lib/python/Products/ZopeTutorial - TutorialTopic.py:1.14.38.1.2.1

Tres Seaver cvs-admin at zope.org
Mon Nov 17 17:10:30 EST 2003


Update of /cvs-repository/Zope/lib/python/Products/ZopeTutorial
In directory cvs.zope.org:/tmp/cvs-serv12097/lib/python/Products/ZopeTutorial

Modified Files:
      Tag: tseaver-strexp_delenda-branch
	TutorialTopic.py 
Log Message:



  - Rip string exceptins out by the root.

  - webdav/*:  clean up block statements for readability.

  - XXX:  Redirects are now showing up in the error log object;  need
          to filter!


=== Zope/lib/python/Products/ZopeTutorial/TutorialTopic.py 1.14.38.1 => 1.14.38.1.2.1 ===
--- Zope/lib/python/Products/ZopeTutorial/TutorialTopic.py:1.14.38.1	Tue Nov  4 16:18:02 2003
+++ Zope/lib/python/Products/ZopeTutorial/TutorialTopic.py	Mon Nov 17 17:09:59 2003
@@ -18,6 +18,8 @@
 import StructuredText
 import  re
 
+from zExceptions import BadRequest
+
 
 pre_pat=re.compile(r'<PRE>(.+?)</PRE>', re.IGNORECASE|re.DOTALL)
 tutorialExamplesFile='ZopeTutorialExamples.zexp'
@@ -160,7 +162,7 @@
         from Products.ZGadflyDA.DA import data_sources
         data_sources()
     except:
-        raise 'Bad Request', 'The ZGadflyDA product must be installed!'
+        raise BadRequest, 'The ZGadflyDA product must be installed!'
 
     # work around old Zope bug in importing
     try:




More information about the Zope-Checkins mailing list