[Checkins] SVN: Products.CMFUid/trunk/Products/CMFUid/ Deal with deprecation warnings for Zope 2.13.

Hanno Schlichting hannosch at hannosch.eu
Sun Jun 6 09:21:49 EDT 2010


Log message for revision 113185:
  Deal with deprecation warnings for Zope 2.13.
  

Changed:
  U   Products.CMFUid/trunk/Products/CMFUid/CHANGES.txt
  U   Products.CMFUid/trunk/Products/CMFUid/testing.py

-=-
Modified: Products.CMFUid/trunk/Products/CMFUid/CHANGES.txt
===================================================================
--- Products.CMFUid/trunk/Products/CMFUid/CHANGES.txt	2010-06-06 13:20:08 UTC (rev 113184)
+++ Products.CMFUid/trunk/Products/CMFUid/CHANGES.txt	2010-06-06 13:21:48 UTC (rev 113185)
@@ -4,8 +4,11 @@
 2.3.0-alpha (unreleased)
 ------------------------
 
+- Deal with deprecation warnings for Zope 2.13.
+
 - Fix markup error (Chameleon compatibility)
 
+
 2.2.0-beta (2009-12-06)
 -----------------------
 

Modified: Products.CMFUid/trunk/Products/CMFUid/testing.py
===================================================================
--- Products.CMFUid/trunk/Products/CMFUid/testing.py	2010-06-06 13:20:08 UTC (rev 113184)
+++ Products.CMFUid/trunk/Products/CMFUid/testing.py	2010-06-06 13:21:48 UTC (rev 113185)
@@ -1,9 +1,14 @@
 from Testing.ZopeTestCase.layer import ZopeLite
 from zope.site.hooks import setHooks
 from zope.testing.cleanup import cleanUp
-from Products.Five import zcml
 
+# BBB for Zope 2.12
+try:
+    from Zope2.App import zcml
+except ImportError:
+    from Products.Five import zcml
 
+
 class UidEventZCMLLayer(ZopeLite):
 
     @classmethod



More information about the checkins mailing list