[Zope-Checkins] CVS: Zope2 - __init__.py:1.3

Jim Fulton jim@digicool.com
Sun, 20 May 2001 12:42:28 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/BTrees
In directory korak.digicool.com:/tmp/cvs-serv32312

Modified Files:
	__init__.py 
Log Message:
Added code to get the interfaces registered with the OOBTree classes.

Eventually, we should add registration for the other flavors too.
This will require deciding how to specify the II, IO, OI variants. ;)



--- Updated File __init__.py in package Zope2 --
--- __init__.py	2001/02/19 18:15:10	1.2
+++ __init__.py	2001/05/20 16:42:27	1.3
@@ -3,3 +3,11 @@
 try: import intSet
 except: pass
 else: del intSet
+
+# Register interfaces
+try: import Interface
+except ImportError: pass # Don't register interfaces if no scarecrow
+else:
+    import Interfaces
+    del Interfaces
+    del Interface