On Monday, October 7, 2019 at 3:42:17 PM UTC-5, btheado wrote:
>
>
> The short answer is that this is standard, core Leo code I'm calling. The 
> long answer is that it will take some investigation.
>

Here is the fix, at rev cc6c47b in devel:

@g.command('show-clones')
def show_clones(event=None):
    """Display links to all parent nodes of the node c.p."""
    c = event.get('c')
    if not c:
        return
    seen = []
    for clone in c.vnode2allPositions(c.p.v):
        parent = clone.parent()
        if parent and parent not in seen:
            seen.append(parent)
            g.es_clickable_link(c, clone, 1, f"{parent.h} -> {clone.h}\n")

Note that the more pythonic: `for clone in 
list(set(c.vnode2allPositions(c.p.v)))` fails because positions are (on 
purpose) not hashable.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/5b3979ca-dc8a-482b-9698-691a304d7379%40googlegroups.com.

Reply via email to