IndexedCatalog and ZEO
Leif K-Brooks
eurleif at ecritters.biz
Sun Mar 6 15:46:04 EST 2005
Almad wrote:
> Hello,
>
> I'm trying to use IndexedCatalog
> [http://www.async.com.br/projects/IndexedCatalog/] in my CherryPy
> [http://www.cherrypy.org] application.
> As Zodb support access just from one Python thread, I must either use just
> one CherryPy thread (slow), or use ZEO. However, if I understand it good,
> when I use
> from ZEO import ClientStorage
>
> then ZEO is internally using FileStorage, so no IndexedCatalog is used.
If you're using IndexedCatalog's Shelf class, just pass it a host/port
tuple instead of a path:
from IndexedCatalog.Shelf import Shelf
shelf = Shelf(('localhost', 1234), [Class1, Class2])
More information about the Python-list
mailing list