[Zope3-checkins]
SVN: Zope3/trunk/src/zope/testbrowser/interfaces.py
fix a bug in testbrowser when used outside of Zope 3: if
zope.interface was
Benji York
benji at zope.com
Sat May 27 11:39:26 EDT 2006
Log message for revision 68308:
fix a bug in testbrowser when used outside of Zope 3: if zope.interface was
available, but zope.schema was not, importing Browser would fail
Changed:
U Zope3/trunk/src/zope/testbrowser/interfaces.py
-=-
Modified: Zope3/trunk/src/zope/testbrowser/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/testbrowser/interfaces.py 2006-05-26 12:46:01 UTC (rev 68307)
+++ Zope3/trunk/src/zope/testbrowser/interfaces.py 2006-05-27 15:39:24 UTC (rev 68308)
@@ -18,18 +18,12 @@
__docformat__ = "reStructuredText"
try:
- # zope.interface isn't included in the stand-alone version
- from zope import interface
+ # zope.interface and zope.schema aren't included in the stand-alone version
+ from zope import interface, schema
except ImportError:
- from dummymodules import interface
+ from dummymodules import interface, schema
-try:
- # zope.schema isn't included in the stand-alone version
- from zope import schema
-except ImportError:
- from dummymodules import schema
-
class IBrowser(interface.Interface):
"""A Programmatic Web Browser."""
More information about the Zope3-Checkins
mailing list