SVN: CMF/branches/2.1/CMFUid/testing.py Merged trunk r84394 into 2.1 branch.

"Stefan H. Holek" <[email protected]> Sun, 2 Mar 2008 06:25:20 -0500 (EST)
Newsgroups gmane.comp.web.zope.cmf.cvs
Message-ID <20080302112520.301192032D7__37316.2368232899$1204457167$gmane$org@mail.zope.org>
Log message for revision 84395:
  Merged trunk r84394 into 2.1 branch.
  
  Base yet another ZCMLLayer on ZopeLite.
  

Changed:
  U   CMF/branches/2.1/CMFUid/testing.py

-=-
Modified: CMF/branches/2.1/CMFUid/testing.py
===================================================================
--- CMF/branches/2.1/CMFUid/testing.py	2008-03-02 11:16:41 UTC (rev 84394)
+++ CMF/branches/2.1/CMFUid/testing.py	2008-03-02 11:25:19 UTC (rev 84395)
@@ -17,3 +17,12 @@
     def testTearDown(cls):
         cleanUp()
 
+
+# Derive from ZopeLite layer if available
+try:
+    from Testing.ZopeTestCase.layer import ZopeLite
+except ImportError:
+    pass # Zope < 2.11
+else:
+    UidEventZCMLLayer.__bases__ = (ZopeLite,)
+