[Zope-CVS] CVS: Products/ZCTextIndex - __init__.py:1.1.2.5

Jeremy Hylton jeremy@zope.com
Thu, 9 May 2002 18:42:21 -0400


Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv24953

Modified Files:
      Tag: TextIndexDS9-branch
	__init__.py 
Log Message:
Move import inside function to increase possibility of importing a
single ZCTextIndex module without importing all of Zope.

Make import use absolute path.


=== Products/ZCTextIndex/__init__.py 1.1.2.4 => 1.1.2.5 ===
 """
 
-import ZCTextIndex
-
 def initialize(context):
-    
+    from Products.ZCTextIndex import ZCTextIndex
+
     context.registerClass(
-        ZCTextIndex.ZCTextIndex,
+        ZCTextIndex,
         permission='Add Pluggable Index',
         constructors=(ZCTextIndex.manage_addZCTextIndexForm,
                       ZCTextIndex.manage_addZCText),