diff options
author | patrickgu <patrickgu> | 2006-03-06 06:33:42 +0000 |
---|---|---|
committer | patrickgu <patrickgu> | 2006-03-06 06:33:42 +0000 |
commit | 73abdd2a67e92f2fb7e815c9d9d4ee139fcdc21e (patch) | |
tree | 70ff0ceda59f3ef8b35e4e4f16416e41683bb6f3 | |
parent | d7b61a61a8696bf3e1504db6b54f7491eefc3077 (diff) |
Comments remap ...
-rw-r--r-- | evolution/change_status.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/evolution/change_status.py b/evolution/change_status.py index e6fda71..4f38a36 100644 --- a/evolution/change_status.py +++ b/evolution/change_status.py @@ -29,9 +29,9 @@ from ldtputils import * def getrowindex(subject): try: - noofchild=getrowcount ('frmEvolution-Mail','ttblMessageList') + noofchild=getrowcount ('frmEvolution-*','ttblMessages') for ind in range (noofchild): - if getcellvalue('frmEvolution-Mail','ttblMessageList',ind,4) == subject: + if getcellvalue('frmEvolution-*','ttblMessages',ind,4) == subject: return ind if ind == noofchild-1: log ('Message not present','cause') @@ -84,16 +84,16 @@ def change_status(fldr, subject, status, importance, junk_status, follow_up_flag try: log('Change status of mails','teststart') windowname = 'dlgFlagtoFollowUp' - remap('evolution','frmEvolution-Mail') - if selectrowpartialmatch ('frmEvolution-Mail','ttblMailFolderTree',fldr) == 1: + #remap('evolution','frmEvolution-Mail') + if selectrowpartialmatch ('frmEvolution-*','ttblMailFolderTree',fldr) == 1: # time.sleep(2) log('Folder identified','info') Row_index = getrowindex(subject) print Row_index # 0,2 are the colmn no.s denote the status, importance of the mails. - cur_status = getcellvalue('frmEvolution-Mail','ttblMessageList',int(Row_index),0) - cur_importance = getcellvalue('frmEvolution-Mail','ttblMessageList',int(Row_index),2) - if selectrowindex('frmEvolution-Mail','ttblMessageList',int(Row_index)) == 1: + cur_status = getcellvalue('frmEvolution-*','ttblMessages',int(Row_index),0) + cur_importance = getcellvalue('frmEvolution-*','ttblMessages',int(Row_index),2) + if selectrowindex('frmEvolution-*','ttblMessages',int(Row_index)) == 1: print status,cur_status if status == 'read' and int(cur_status) == 0: selectmenuitem('frmEvolution-Mail','mnuMessage;mnuMarkas;mnuRead') |