On Mon, 09 Aug 2010 20:02:54 -0400
"Ville M. Vainio" <[email protected]> wrote:

> I think zodb is overkill. Sqlite can do everything we'll ever need (including 
> storing pickled uA's, indexed by gnx and uA name)

I have a sqlite based "node storage class":

@shadow maglink.py
    maglink declarations
    class MagLink
    class Node
    class Backend
        esc
        getChildMetadata
        getChildren
        getConCursor
        getMasterNode
        getNewID
        getNode
        getNodeCount
        getNodeMetadata
        moveNode
        detachNode
        setChildren
        setNode
        setNodeMetadata

from my ill-advised, and yet successful :-) attempt to replace Zope :-)  It's a 
SQLite/CherryPy/Genshi stack.  I use it to generated this site:  
http://DulcimersInDuluth.com/ - it works completely TTW (Through The Web).  I 
don't like it because it does the same thing Zope/Plone does, puts all your 
stuff in one large binary file you can't access unless the system is running.  
I had trouble getting it ported from lxml 1.x to 2.x, or something like that, 
issues with xi:include processing.  But all that's irrelevant to the node 
storage class above.

I'm not sure how great the code is, it's several years old now.

Cheers -Terry

> --
> Sent from my Nokia N900
> 
> ----- Original message -----
> > On Mon, 9 Aug 2010 07:14:38 -0700 (PDT)
> > "Edward K. Ream" <[email protected]> wrote:
> > 
> > > 2. Using zodb as Leo's cache.   leoNodes already contains the low-level
> > > code to do this.   I'm going to revisit the caching code soon--it might
> > > be the time to re-imagine caching as a front end to zodb. That might
> > > allow Leo outlines to contain (that is, connect with) millions of
> > > nodes...
> > 
> > I still think it would be a good idea to have a db abstraction layer in
> > there so you don't have to add zodb as a dependency.   Write the
> > abstraction layer (which should be intrinsically simple) and then
> > develop using zodb - you get the chance to switch to couchdb or sqlite
> > (with a probably trivial adapter) etc. etc.
> > 
> > Cheers -Terry
> > 
> > -- 
> > You received this message because you are subscribed to the Google
> > Groups "leo-editor" group. To post to this group, send email to
> > [email protected]. To unsubscribe from this group, send email
> > to [email protected]. For more options, visit this
> > group at http://groups.google.com/group/leo-editor?hl=en.
> > 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to