« Return to Thread: Snapshotting state with DemoStorage

Re: Snapshotting state with DemoStorage

by Stefan H. Holek :: Rate this Message:

| View in Thread

You can base DemoStorage on another storage. This could be simple with  
ZTC, haven't tried in a while. See ZopeLite.sandbox() and sandbox.py.  
You may be able to get away with minor mods to the base classes, e.g.  
overriding the _app() method of Sandboxed/Functional.

Stefan


On 27.05.2008, at 23:22, Martin Aspeli wrote:

> Is it possible to create a fast "snapshot" with DemoStorage e.g. in  
> a ZopeTestCase layer, and then have the tear-down after each test  
> revert to this state? Doing the full setup (creating a new Plone  
> site, populating it) between each test run is prohibitively expensive!

--
Stefan H. Holek
stefan@...




_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

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

 « Return to Thread: Snapshotting state with DemoStorage