[CMF-checkins] CVS: Products/CMFCore/tests - test_PortalFolder.py:1.21.4.6

Stefan H. Holek stefan at epy.co.at
Tue Jul 20 09:37:03 EDT 2004


Update of /cvs-repository/Products/CMFCore/tests
In directory cvs.zope.org:/tmp/cvs-serv22178/tests

Modified Files:
      Tag: CMF-1_4-branch
	test_PortalFolder.py 
Log Message:
Restore compatibility with older Zope versions.


=== Products/CMFCore/tests/test_PortalFolder.py 1.21.4.5 => 1.21.4.6 ===
--- Products/CMFCore/tests/test_PortalFolder.py:1.21.4.5	Tue Jul 20 08:43:32 2004
+++ Products/CMFCore/tests/test_PortalFolder.py	Tue Jul 20 09:37:02 2004
@@ -24,7 +24,11 @@
 from Products.CMFCore.PortalFolder import ContentFilter
 from Products.CMFCore.interfaces.Dynamic import DynamicType as IDynamicType
 from webdav.WriteLockInterface import WriteLockInterface
-from zExceptions import BadRequest
+
+try:
+    from zExceptions import BadRequest
+except ImportError:
+    BadRequest = 'BadRequest'
 
 def extra_meta_types():
     return [  { 'name' : 'Dummy', 'action' : 'manage_addFolder' } ]



More information about the CMF-checkins mailing list