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

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
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 => ===
-import ZCTextIndex
 def initialize(context):
+    from Products.ZCTextIndex import ZCTextIndex
-        ZCTextIndex.ZCTextIndex,
+        ZCTextIndex,
         permission='Add Pluggable Index',