X-Git-Url: https://scm.cri.minesparis.psl.eu/git/Plinn.git/blobdiff_plain/3c4367d8e03450e9a73e61f4247145d2b6c86a33..959d888c17d1403d2eeecc19bc4b5e2c8d1debf6:/skins/generic/getReplyFormPosition.py?ds=inline diff --git a/skins/generic/getReplyFormPosition.py b/skins/generic/getReplyFormPosition.py deleted file mode 100644 index a53b1dc..0000000 --- a/skins/generic/getReplyFormPosition.py +++ /dev/null @@ -1,18 +0,0 @@ -##parameters=rows, position -if position is None : - return None -else : - reply = context.talkback.getReply(position) - - def isChildOfReply(firstAprox, reply) : - thread = reply.parentsInThread() + reply.getReplies() # hum ! - return firstAprox in thread - - for i in range(len(rows)) : - if rows[i].object == reply : - break - - while rows[i].state > 0 and isChildOfReply(reply, rows[i].object) : - i+=1 - - return rows[i].object.id \ No newline at end of file