[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/DateIndex/tests - test_DateIndex.py:1.3.4.1
Jim Fulton
jim@zope.com
Wed, 17 Jul 2002 17:15:34 -0400
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/DateIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv7961/lib/python/Products/PluginIndexes/DateIndex/tests
Modified Files:
Tag: Zope-2_7-development-branch
test_DateIndex.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/DateIndex/tests/test_DateIndex.py 1.3 => 1.3.4.1 ===
#
##############################################################################
-import Zope
+import Zope; Zope.startup()
+
import unittest
from DateTime import DateTime