Re: recursive outline numbering for object trees

2009-03-30 Thread Alia K
"Gabriel Genellina" wrote: > You should thank Aaron Brady who wrote the original function. I just   > smoothed some edges and glued it with your own code. Ah, Aaron Brady is castironpi... Well, thank you both then. (-: AK -- http://mail.python.org/mailman/listinfo/python-list

Re: recursive outline numbering for object trees

2009-03-30 Thread Gabriel Genellina
En Mon, 30 Mar 2009 17:34:32 -0300, Alia K escribió: Thanks Gabriel. Your solution works like a charm. (-: You should thank Aaron Brady who wrote the original function. I just smoothed some edges and glued it with your own code. -- Gabriel Genellina -- http://mail.python.org/mailman/li

Re: recursive outline numbering for object trees

2009-03-30 Thread Alia K
Thanks Gabriel. Your solution works like a charm. (-: AK -- http://mail.python.org/mailman/listinfo/python-list

Re: recursive outline numbering for object trees

2009-03-30 Thread Gabriel Genellina
Alia Khouri yahoo.com> writes: > Given the following class: > > class Node(object): > def __init__(self, name, children=[], parent=None): > self.name = name > self.level = '' > self.children = children > self.parent = parent > > def __repr__(self): >

recursive outline numbering for object trees

2009-03-30 Thread Alia Khouri
Hi, Here my problem description: Given the following class: class Node(object): def __init__(self, name, children=[], parent=None): self.name = name self.level = '' self.children = children self.parent = parent def __repr__(self): name = self.__cl