On Fri, Sep 16, 2011 at 10:20 AM, Terry Brown <[email protected]> wrote:

> What's the vnode equivalent of .insertAsNthChild()?

As you can see, I'm popping the email stack from most recent to later.

v._linkAsNthChild(parent_v,n)

This is a low-level method.  It's used in the read logic, the undo
logic, and one or two other places.  It's probably safer to use than
the two other low-level vnode methods, but I would try to avoid it if
possible.

Otoh,  I just started rewriting the leoOPML.py plugin.  The old code
dates from before the one-node world.  The createVnodes method and its
helpers show how easy it is to recreate a tree of vnodes.  Of course,
the input is a tree of sax nodes, so some of the work has been done,
but still, the code shows that one only has to create the parents and
children arrays for each vnode.

Edward

-- 
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