Modification de l'import de swfheader : installé avec easy_install, il n'est pas...
[Plinn.git] / skins / generic / getReplyFormPosition.py
1 ##parameters=rows, position
2 if position is None :
3 return None
4 else :
5 reply = context.talkback.getReply(position)
6
7 def isChildOfReply(firstAprox, reply) :
8 thread = reply.parentsInThread() + reply.getReplies() # hum !
9 return firstAprox in thread
10
11 for i in range(len(rows)) :
12 if rows[i].object == reply :
13 break
14
15 while rows[i].state > 0 and isChildOfReply(reply, rows[i].object) :
16 i+=1
17
18 return rows[i].object.id