[Zope3-checkins] CVS: Zope3/src/zope/app - _app.py:1.3

Jim Fulton jim@zope.com
Thu, 26 Dec 2002 15:18:08 -0500


Update of /cvs-repository/Zope3/src/zope/app
In directory cvs.zope.org:/tmp/cvs-serv32514

Modified Files:
	_app.py 
Log Message:
If no arguments are passed to Application, it now assumes "Data.fs"
and "site.zcml".


=== Zope3/src/zope/app/_app.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/_app.py:1.2	Wed Dec 25 09:12:24 2002
+++ Zope3/src/zope/app/_app.py	Thu Dec 26 15:18:07 2002
@@ -75,7 +75,11 @@
 
 class Application:
 
-    def __init__(self, db, config_file=None):
+    def __init__(self, db=None, config_file=None):
+        if db is None and config_file is None:
+            db = 'Data.fs'
+            config_file = 'site.zcml'
+        
         if config_file is not None:
             config(config_file)
         self.db = database(db)