[Zope-ZEO] ZSS extensions

Jim Fulton jim@digicool.com
Fri, 14 Jul 2000 19:11:14 -0400


Bill Anderson wrote:
> 
> Jim Fulton wrote:
> >
> > nw_moriarty wrote:
> > >
> > > Folks,
> > >
> > > I have been using ZODB outside Zope with great success.
> > > My app has a main DB and can create other DBs depending on user input.
> >
> > Eek.
> >
> > > This is a problem with ZEO as ZSS can only serve one DB.
> >
> > Actually, that's not true.  ZEO can serve any number of databases. Look at the
> > start.py file and you'll see how it handles multiple databases.
> 
> So, if I want a ZSS to serve more than one *.fs, I can so like this:
> python start -w 8111 -S Main=Main.fs sub1=Sub1.fs
> 
> Right?
> 
> Now, how do I tell the client (in this case, Zope) which one to access?

There is an optional 'storage' argument to the client 
to which you provide the storage name, as in:

  Storage=ClientStorage(('',9999), storage='sub1')

Jim

--
Jim Fulton           mailto:jim@digicool.com   Python Powered!        
Technical Director   (888) 344-4332            http://www.python.org  
Digital Creations    http://www.digicool.com   http://www.zope.org    

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.