[Setup] Plone 4.0.4: RelStorage: zope.conf and zodb_db temporary

Maurits van Rees m.van.rees at zestsoftware.nl
Thu Mar 24 23:17:52 UTC 2011


Op 24-03-11 20:44, nikolaj schreef:
> Ok, it writes the RelStorage section to zope.conf. The Data.fs section is
> generated also - how to remove that?
>
> Also, in the "zodb_db temporary" section, the mount-point is set to
> /temp_folder. Is it correct when using RelStorage?

I have this in buildout.cfg on Plone 4:

[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
http-address = 8080
debug-mode = off
verbose-security = on
rel-storage =
     type postgresql
     host localhost
     dbname client
     user joe
     password secet
     keep-history false
     blob-dir var/blobstorage

eggs =
     Plone
     RelStorage
     psycopg2
zcml =


That leads to this zope.conf:

<zodb_db main>
     # Main database
     cache-size 10000

%import relstorage
     <relstorage>
         blob-dir var/blobstorage
         keep-history false
         <postgresql>
             dsn dbname='client' user='joe' host='localhost' 
password='secret'
         </postgresql>
     </relstorage>
     mount-point /
</zodb_db>

<zodb_db temporary>
     # Temporary storage database (for sessions)
     <temporarystorage>
       name temporary storage for sessioning
     </temporarystorage>
     mount-point /temp_folder
     container-class Products.TemporaryFolder.TemporaryContainer
</zodb_db>


Which is working fine.


-- 
Maurits van Rees
Web App Programmer at Zest Software: http://zestsoftware.nl
Personal website: http://maurits.vanrees.org/



More information about the Setup mailing list