[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TopicIndex/tests - testTopicIndex.py:1.3.4.1

Jim Fulton jim@zope.com
Wed, 17 Jul 2002 17:15:35 -0400


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TopicIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv7961/lib/python/Products/PluginIndexes/TopicIndex/tests

Modified Files:
      Tag: Zope-2_7-development-branch
	testTopicIndex.py 
Log Message:
Changed the Zope package to be a pure (well almost pure) container
package, in preparation for making some Zope 3 packages available in
Zope 2.7.

Now importing Zope has no side effects (other than adding an entry to
sys.modules). 

To initialize the Zope application server, you need to call the
startup function in the Zope package:

  import Zope    # does nothing
  Zope.startup() # initializes the application

Zope.startup populates the Zope package with the traditional
attributes, like DB and debug.

Note that calling startup additional times has no effect.



=== Zope/lib/python/Products/PluginIndexes/TopicIndex/tests/testTopicIndex.py 1.3 => 1.3.4.1 ===
 ##############################################################################
 
 
-import Zope
+import Zope; Zope.startup()
+
 import os,sys,re,unittest
 from Products.PluginIndexes.TopicIndex.TopicIndex import TopicIndex
 from Products.ZCatalog.ZCatalog import ZCatalog