[ZODB-Dev] Handling more databases with zeo

2005-06-28 Thread Lukas Linhart
Hello, 

sorry for bothering in Dev list, but I've posted this to c.l.p with no answer 
and I don't knew where to ask. 

I've rtfm again and I really don't knew :]

cite
One nice feature of the configuration file is that you don't need to specify 
imports for a specific storage. That makes the code a little shorter and 
allows you to change storages without changing the code. 
import ZODB.config

db = ZODB.config.databaseFromURL('/tmp/zeo.conf')
/cite

Well, my goal is to use database via zodb and have db specified in config file 
only. 

Thank You for any help, 

Almad

-- Message from comp.lang.python --
Hello, 

sorry for bothering with same question again. However, month ago, I have
tried to handle more zodb databases with zeo as described here:
http://mail.python.org/pipermail/python-list/2005-May/279915.html

Since then, I don't have had a time to play with it and now I tried again.
However, even after reading
http://www.zope.org/Wikis/ZODB/FrontPage/guide/index.html few times, I have
no idea how to handle this (as anywhere I read, client only connect to port
and do not select filestorage). Only possibility I see is to run more zeo
instances, which is not neccessary as I have read. 

Thank You for help, 
Lukas Almad Linhart
[:: http://www.almad.net/ ::]


pgp8yueKUY5dF.pgp
Description: PGP signature
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


Fwd: Re: [ZODB-Dev] Handling more databases with zeo

2005-06-28 Thread Lukas Linhart

Sorry for not posting into mailing list, I'm just used only to press 'r' 
key :/

-- Forwarded message  --

Hello,

 import ZODB.config
 db = ZODB.config.databaseFromURL('/tmp/zeo.conf')

 then works unchanged no matter which storage is specified in /tmp/zeo.conf.

 Maybe you could be more specific about what you want to do?

Well I meant: when I'm having ZEO configured this way (/etc/zeo/zeo.conf):

zeo
address localhost:11000
monitor-address localhost:11001
/zeo

filestorage 1
path /var/www/databases/zodb/almad-net.fs
/filestorage
filestorage 2
path /var/www/databases/zodb/zapisnik-test.fs
/filestorage

eventlog
logfile
path /var/log/zeo/zeo.log
format %(asctime)s %(message)s
/logfile
/eventlog

How do I connect to filestorage 2 (I thought that 1 and 2 are aliases)?

--

Lukas Almad Linhart

[:: http://www.Include.cz/ ::]
[:: Including Your wishes ::]
[:: PGP/GNUPg key: http://download.almad.net/pubkey.asc ::]

---

-- 

Lukas Almad Linhart

[:: http://www.Include.cz/ ::]
[:: Including Your wishes ::]
[:: PGP/GNUPg key: http://download.almad.net/pubkey.asc ::]


pgpm5HBaiv4vK.pgp
Description: PGP signature
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev