[Zope3-checkins] CVS: Zope3/lib/python/Zope/App - _app.py:1.6

Guido van Rossum guido@python.org
Fri, 13 Dec 2002 14:15:42 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App
In directory cvs.zope.org:/tmp/cvs-serv8661

Modified Files:
	_app.py 
Log Message:
Use ZopePublication.root_name rather than hardcoding 'Application'.


=== Zope3/lib/python/Zope/App/_app.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/App/_app.py:1.5	Thu Dec 12 15:16:34 2002
+++ Zope3/lib/python/Zope/App/_app.py	Fri Dec 13 14:15:42 2002
@@ -76,7 +76,8 @@
         self.db = database(db)
 
     def __call__(self):
-        return self.db.open().root()['Application']
+        from Zope.App.ZopePublication.ZopePublication import ZopePublication
+        return self.db.open().root()[ZopePublication.root_name]
 
     __browser_pub = None
     __TestRequest = None