SVN: CMF/branches/2.0/DCWorkflow/tests/test_exportimport.py Make tests pass with zope 2.10.

Florent Guillaume <[email protected]>
Newsgroups gmane.comp.web.zope.cmf.cvs
Message-ID <[email protected]>
Log message for revision 68983:
  Make tests pass with zope 2.10.
  

Changed:
  U   CMF/branches/2.0/DCWorkflow/tests/test_exportimport.py

-=-
Modified: CMF/branches/2.0/DCWorkflow/tests/test_exportimport.py
===================================================================
--- CMF/branches/2.0/DCWorkflow/tests/test_exportimport.py	2006-07-05 17:11:59 UTC (rev 68982)
+++ CMF/branches/2.0/DCWorkflow/tests/test_exportimport.py	2006-07-05 17:13:18 UTC (rev 68983)
@@ -81,6 +81,14 @@
         zcml.load_config('permissions.zcml', Products.Five)
         zcml.load_config('configure.zcml', Products.DCWorkflow)
         zcml.load_config('configure.zcml', Products.GenericSetup.PythonScripts)
+        try:
+            import zope.traversing
+        except ImportError:
+            # BBB: Zope < 2.10
+            pass
+        else:
+            # Traversal adapters are needed for TALES
+            zcml.load_config('configure.zcml', zope.traversing)
 
     def _initDCWorkflow( self, workflow_id ):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.