[Zope-dev] DBTab/ZEO configuration in Zope2.7 beta1

Chris McDonough chrism at zope.com
Fri Aug 15 22:22:28 EDT 2003


This is because the default is to mount a temporary storage at
/temp_folder.  Since you overrode the default, you need to specify the
tempfolder storage in the config.

Something like this (untested) as an additional zodb_db entry should
work:

<zodb_db temporary>
  <temporarystorage>
    name sessions
  </temporarystorage>
    mount-point /temp_folder
</zodb_db>

On Fri, 2003-08-15 at 16:40, Tino Wildenhain wrote:
> Just a step in between:
> 
> I found ZODB/component.xml, where
> there seem to be the definition of
> the relevant section of zope.conf.
> 
> <zodb_db main>
>   <zeo_client>
>      server localhost:12345
>   </zeo_client>
>      mount-point /
>      cache-size	5000
>      pool-size	7
>      version-pool-size	3
>      version-cache-size	100
> </zodb_db>
> 
> <zodb_db images>
>    <filestorage>
>      path $INSTANCE/var/Images.fs
>    </filestorage>
>      mount-point /images
>       ...
> 
> </zodb_db>
> 
> zopectl debug yields the following:
> 
> File "Zope/lib/python/OFS/Application.py", line 349, in initialize 
> tf._setObject('session_data', toc)
> 
> AttributeError: _setObject
> 
> 
> strange. Perhaps the temp_folder isnt mounted?
> 
> There is no reference of the tempstorage in the above definition file...
> 
> 
> 
> Tino Wildenhain wrote:
> > Hi Chris,
> > 
> > Chris McDonough wrote:
> > 
> >> mkzopeclient -z should go away.  You should use the zope.conf file to
> >> configure mounted databases.  Unfortunately I haven't had time to
> >> include adequate examples in the sample config, but it might help a bit
> >> to look at the lib/python/Zope/Startup/zopeschema.xml file.
> > 
> > 
> > That was the second thing I did :-) (first was to look into doc/)
> > 
> > I spottet the following directives:
> > 
> > <mount-point/>
> > (Seems to be specifiable multiple times)
> > <connection-class/>
> > <class-factory/>
> > 
> > ok, I can somehow stick ZEO.ClientStorage.ClientStorage
> > into it, but what then? How to set options for
> > ClientStorage? Hostname, Port, Cache, Fall-back-Storages
> > (as supported by DBTab)
> > 
> > I can provide the examples for the template once I have
> > working ones...
> > 
> > Regards
> > Tino
> > 
> > 
> > _______________________________________________
> > Zope-Dev maillist  -  Zope-Dev at zope.org
> > http://mail.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
> > http://mail.zope.org/mailman/listinfo/zope )
> > 
> 
> 
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev at zope.org
> http://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope )




More information about the Zope-Dev mailing list