> Would anyone volunteer to write a mounting HOWTO?  This is a FAQ.

The ExternalMount product is kind of self instructing,
but a general Mounting HOWTO would be a good thing.

> > FileStorage is what the standard Data.fs is, and it supports undo.

Just one thing, ExternalMount product uses FileStorage but it doesn't
seem to support undos (not for me anyway)?

Johan Carlsson


<From the ExternalMount product>
Create an external method that opens a storage and returns a ZODB.DB
object.  Enter the module and function name below, along with the path to
traverse within the database to reach the object to be mounted.

An example external method:

import ZODB
from ZODB.FileStorage import FileStorage

def createDB():
    return ZODB.DB(FileStorage('/usr/local/zodbs/db1.fs'))
<From the ExternalMount product>

 
> 
> > Andy McKay wrote:
> >
> > >> A simpler solution is to use a mounted storage that doesn't do undo,
> and
> > >> stores changes in place.
> > >
> > > You are the second person to answer with that. Would anyone care to give
> a
> > > quick how-to on how to mount a non-undoing storage, such as     
> >
> > FileStorage is what the standard Data.fs is, and it supports undo.
> >
> > > since this doesnt seem immediately obvious to me.
> >
> > Take a look at ExternalMount, and at what's used in the
> CoreSessionTracking product.
> >
> > I can't find a URL for ExternalMount at the moment. I'm using it though,
> so it *definitely* exists!
> >
> >
> > Also, see lib/python/ZODB/dbmStorage.py
> >
> > """Very Simple dbm-based ZODB storage
> >
> > This storage provides for use of dbm files as storages that
> > don't support versions or Undo.  This may be useful when implementing
> > objects like hit counters that don't need or want to participate
> > in undo or versions.
> > """
> >
> > --
> > Steve Alexander
> > Software Engineer
> > Cat-Box limited
> > http://www.cat-box.net
> >
> >
> >
> > _______________________________________________
> > Zope-Dev maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope-dev
> > **  No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope )
> >
> 
> 
> _______________________________________________
> Zope-Dev maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
> 
h¥àÞ¾f¢X¬µ)x7¯Î^¢¸!¶ÚþX¬¶Ìè¥ê+ùYùb²Ø§~ó¢zóhrº,²,¶Ê+3zw(v)àEéZµçeËlÛiÿùb²Û3¢¨®æj)fjåËbú?Î^jyèºwÛiÿùb²Û3¢¨®æj)fjåËbú?Î^

Reply via email to