[Zope-Checkins] CVS: Zope3 - z3.py:1.1.2.12
Martijn Pieters
mj@zope.com
Fri, 30 Nov 2001 14:47:43 -0500
Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv24123
Modified Files:
Tag: Zope-3x-branch
z3.py
Log Message:
Hook up the ZODB into the fray; grab the rot object from a FileStorage.
=== Zope3/z3.py 1.1.2.11 => 1.1.2.12 ===
from Zope.Server.HTTPServer import CommonHitLogger
+from ZODB.FileStorage import FileStorage
+from ZODB import DB
+
# temp hack
from Zope.App.config import config
config(os.getcwd())
-class App(RootFolder):
- """ """
- def __call__(self, URL):
- """ """
- return 'You have reached the wrong number. Please try again later.'
-
- def index_html(self):
- """ """
- return 'You have reached the index_html method. Death to index_html!'
-
zLOG._set_log_dest(sys.stderr)
-publication = BrowserPublication(App())
+DB = DB(FileStorage('Data.fs'))
+publication = BrowserPublication(DB)
request_payload = BrowserRequestPayload(publication)
response_payload = BrowserResponsePayload()