[Zope-Checkins] CVS: Zope/lib/python/Products/SiteAccess/Extensions - updata.py:1.1.208.1

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


Update of /cvs-repository/Zope/lib/python/Products/SiteAccess/Extensions
In directory cvs.zope.org:/tmp/cvs-serv7961/lib/python/Products/SiteAccess/Extensions

Modified Files:
      Tag: Zope-2_7-development-branch
	updata.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/SiteAccess/Extensions/updata.py 1.1 => 1.1.208.1 ===
-import Zope
+import Zope; Zope.startup()
+
 from ZPublisher.BeforeTraverse import NameCaller, rewriteBeforeTraverse
 from Products.SiteAccess.AccessRule import AccessRule