[Zodb-checkins] CVS: Zope/lib/python/ZODB - DemoStorage.py:1.11.26.1 MappingStorage.py:1.6.60.1

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


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

Modified Files:
      Tag: Zope-2_7-development-branch
	DemoStorage.py MappingStorage.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/ZODB/DemoStorage.py 1.11 => 1.11.26.1 ===
 as changes are made.  For example, in Zope, you can create an external
 method::
 
-  import Zope
+  import Zope; Zope.startup()
 
   def info(RESPONSE):
       RESPONSE['Content-type']= 'text/plain'


=== Zope/lib/python/ZODB/MappingStorage.py 1.6 => 1.6.60.1 ===
 as changes are made.  Foe example, in Zope, you can create an external
 method::
 
-  import Zope
+  import Zope; Zope.startup()
 
   def info(RESPONSE):
       RESPONSE['Content-type']= 'text/plain'