moveToTopAndCloneToAtDay should be like:

def moveToTopAndCloneToAtDay(c, p):
    """
        Move the node identified by position p to the first child of
        an ancestor @ftlist node and also clone it to a sibling @day
        node with date matching today's date
    """
    ftlist = findFtlistAncestor(p)
    if not ftlist:
        g.es("Not in ftlist tree")
        return
    ftlist, p = moveOrCloneToTop(p, ftlist)
    p2 = cloneToSiblingTodayNode(p)
    c.redraw(p2)


Sorry, I have permuted the return of moveOrCloneToTop (you had: return p, 
ftlist, and I wrote return ftlist, p)

I haven't tested this script thoroughly but it should work. Let me know if 
it doesn't work as you expected.
Vitalije

-- 
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/a7749d44-abb7-4e62-9bb0-746c27f91fdc%40googlegroups.com.

Reply via email to