On Sat, Sep 4, 2010 at 6:26 PM, Terry Brown <[email protected]> wrote:

>> Now how hard was that?
>
> Infinitely (1./0.) harder than not having to write anything (the lxml in 
> linux case), but not bad in the lxml isn't available for windows case.

I'm starting to believe you :-)  I spent an hour last night slogging
through the inkcall code.

I'm hoping there is a principle that will simplify the transliteration
from lxml to ElementTree, namely that all methods in common between
lxml and ElementTree work exactly the same way.  This is a theorem,
not a given.

It's important, as I found out. inkcall is doing quite a bit. For
example, in make_dom there are these lines:

for i in part.values():
        i.xpath('..')[0].remove(i)

The hope is to replace this with something like:

for i in part.values():
        # Recompute all parents, as in these posts.
        parents_d = self.getParents()
        parent = parents_d.get(i)
        parent.remove(i)

In other words, remove had better work the same way in both environments!

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