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.
--
Dr. rer. medic. Johannes Hüsing
Leiter Biometrie
Koordinierungszentrum für Klinische Studien
Universitätsklinikum Heidelberg
Besuchsadresse:
Voßstraße 2/ Gebäude 4410
69115 Heidelberg
Tel: +49-6221-56-34506
Fax: +49-6221-56-33508
E-mail: [email protected]
http://www.kks-hd.de


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