[Zope-Checkins] CVS: Zope/utilities - check_catalog.py:1.4.74.1

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


Update of /cvs-repository/Zope/utilities
In directory cvs.zope.org:/tmp/cvs-serv7961/utilities

Modified Files:
      Tag: Zope-2_7-development-branch
	check_catalog.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/utilities/check_catalog.py 1.4 => 1.4.74.1 ===
 
 __version__='$Revision$'[11:-2]
 
-import Zope    
+import Zope; Zope.startup()
 import os,sys,re,getopt
 from types import IntType
 from BTrees.IIBTree import IISet,difference,intersection