[Zope-Checkins] CVS: Zope3 - z3.py:1.1.2.18

Jim Fulton jim@zope.com
Tue, 12 Feb 2002 14:51:44 -0500


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv1272

Modified Files:
      Tag: Zope-3x-branch
	z3.py 
Log Message:
Fixed bug in database initialization. The startup code tried to get
the app object as an attribute, rather than as an item of the database
root.


=== Zope3/z3.py 1.1.2.17 => 1.1.2.18 ===
 connection = DB.open()
 root = connection.root()
-app = getattr(root, ZopePublication.root_name, None)
+app = root.get(ZopePublication.root_name, None)
 
 if app is None:
     from Zope.App.OFS.Folder.RootFolder import RootFolder
@@ -77,3 +77,4 @@
     # Exit without spewing an exception.
     pass
 sys.exit(0)
+