[ZODB-Dev] Using demostorage + blobs with ZEO

Zvezdan Petkovic zvezdan at zope.com
Mon Oct 17 07:15:47 UTC 2011


On Oct 17, 2011, at 5:52 AM, Malthe Borch wrote:

> According to source code comments, a demo storage will support blobs
> if the underlying storage does. But I find that it's impossible to
> wrap a <zeoclient> in a demo storage and have it working.
> 
> Am I doing something wrong


Since you did not explain what you are doing,
we don't know if it's wrong or right.
:-)


> – or, if it's not supported,


It is supported.

1. Wrap <zeoclient> into <before> storage.
2. Add <filestorage> for changes.
3. Wrap all that into <demostorage>

See zc.beforestorage documentation, section "Blob Support".
http://pypi.python.org/pypi/zc.beforestorage/

Regards,

	Zvezdan



More information about the ZODB-Dev mailing list