[Checkins] SVN: z3c.deadlockdebugger/trunk/z3c/deadlockdebugger/threads.py conditional import to make this work with Zope 2.9 too
David Glick
davidglick at onenw.org
Wed Apr 29 17:24:57 EDT 2009
Log message for revision 99586:
conditional import to make this work with Zope 2.9 too
Changed:
U z3c.deadlockdebugger/trunk/z3c/deadlockdebugger/threads.py
-=-
Modified: z3c.deadlockdebugger/trunk/z3c/deadlockdebugger/threads.py
===================================================================
--- z3c.deadlockdebugger/trunk/z3c/deadlockdebugger/threads.py 2009-04-29 15:57:39 UTC (rev 99585)
+++ z3c.deadlockdebugger/trunk/z3c/deadlockdebugger/threads.py 2009-04-29 21:24:56 UTC (rev 99586)
@@ -1,4 +1,8 @@
-from zope.publisher.browser import BrowserView
+try:
+ from zope.publisher.browser import BrowserView
+except ImportError:
+ # zope 2.9
+ from zope.app.publisher.browser import BrowserView
import thread
import threadframe
More information about the Checkins
mailing list