a53b1dce6bc622a5810ff099e44ac4cd1bed1a5c
1 ##parameters=rows, position
5 reply
= context
.talkback
.getReply(position
)
7 def isChildOfReply(firstAprox
, reply
) :
8 thread
= reply
.parentsInThread() + reply
.getReplies() # hum !
9 return firstAprox
in thread
11 for i
in range(len(rows
)) :
12 if rows
[i
].object == reply
:
15 while rows
[i
].state
> 0 and isChildOfReply(reply
, rows
[i
].object) :
18 return rows
[i
].object.id