I am trying to set a priority of a node and all its ancestors. After 
reading the documentation in http://leo.zwiki.org/Todo, I am still 
uncertain what the object is the method should be applied to.

 

Here's my code

 

def markUpwards(p):

    for ancestor in p.self_and_parents():

        g.es(ancestor.headString())

        c.selectPosition(ancestor)

        c.leo.setPri(20)

 

(following the code suggested in 
http://osdir.com/ml/python-leo-general/2009-03/msg00532.html)

 

But I get the message: 

AttributeError: 'Commands' object has no attribute 'leo'

 

Sorry if my attempt to use the program causes me to flood this list with 
newbie questions.

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to