[Zope] Zope on a CD-ROM?

Stefan Franke spamfranke@bigfoot.de
Wed, 09 Jun 1999 20:33:27 GMT


I'm trying to put my Zope app (1.10.2, Win NT) on a CD-ROM for demo purposes,
using ZopeHTTPServer. 

I have a batch file whichs sets ZOPE_READ_ONLY before starting start.bat. It 
works fine when running from the harddisk. But on a CD-ROM I get the traceback 
below.

Is the read-only mode not really read only? 

Stefan


Traceback (innermost last):
  File "serve.py", line 100, in ?
    ZopeHTTPServer.main(args)
  File "D:\Programme\Zope\Koelnzope\ZopeHTTPServer\ZopeHTTPServer.py", line 500, in main
    start(module_file,host,port,threading,env)
  File "D:\Programme\Zope\Koelnzope\ZopeHTTPServer\ZopeHTTPServer.py", line 438, in start
    set_published_module(module_file,BoboRequestHandler,env)
  File "D:\Programme\Zope\Koelnzope\ZopeHTTPServer\ZopeHTTPServer.py", line 434, in set_published_module
    __import__(name) # to catch problem modules right away
  File "D:\Programme\zope\koelnzope\lib\python\Main.py", line 103, in ?
    Bobobase=OFS.Application.open_bobobase()
  File "D:\Programme\zope\koelnzope\lib\python\OFS\Application.py", line 365, in open_bobobase
    install_products(app)
  File "D:\Programme\zope\koelnzope\lib\python\OFS\Application.py", line 483, in install_products
    get_transaction().commit()
  File "D:\Programme\Zope\Koelnzope\lib\python\BoboPOS\SingleThreadedTransaction.py", line 182, in commit
    o.__inform_commit__(self,self.now)
  File "C:\temp\zope_cd\lib\python\BoboPOS\SimpleDB.py", line 348, in store
    if self._ro: self.write_mode_error()
  File "C:\temp\zope_cd\lib\python\BoboPOS\SimpleDB.py", line 341, in write_mode
_error
    raise IOError, (ErrorFormat %
IOError:
<HTML><HEAD><TITLE>Database Error</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555" ALINK="#77003B">
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="10">
<TR>
  <TD VALIGN="TOP"><BR>
  <CENTER><B><FONT SIZE="+6" COLOR="#77003B">!</FONT></B></CENTER>
  </TD>
  <TD VALIGN="TOP"><BR><BR>
  <CENTER>Attempt to perform a <em>write</em> operation while the database
            is in <em>read-only</em> mode.
            </CENTER>
  </TD>
</TR>
</TABLE>