diff options
author | patrickgu <patrickgu> | 2006-03-14 09:08:03 +0000 |
---|---|---|
committer | patrickgu <patrickgu> | 2006-03-14 09:08:03 +0000 |
commit | 3c61fd0ee9a06a4e3c069cdd3ed5cdbe0466ec83 (patch) | |
tree | 706f161ef9b0443f53b71087a842d521b798b6bc | |
parent | dce54567b5b1008481c3db190f848a717052a90f (diff) |
For all-day-event.py
-rw-r--r-- | evolution/all-day-event.py | 3 | ||||
-rw-r--r-- | evolution/evoutils/calendar.py | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/evolution/all-day-event.py b/evolution/all-day-event.py index badd274..86ce84b 100644 --- a/evolution/all-day-event.py +++ b/evolution/all-day-event.py @@ -42,7 +42,7 @@ def read_data(): def create_appoinment(): log ('Create Appointment', 'teststart') try: - windowname = 'frmAppointment-Nosummary' + windowname = 'frmAppointment-*' flag = 0 more_items_todo = 'yes' summary, location, description, from_date, to_date, calendar = read_data() @@ -80,4 +80,5 @@ def create_appoinment(): log ('All day Appointment created','info') log ('Create Appointment', 'testend') +selectPanel ('Calendars') create_appoinment() diff --git a/evolution/evoutils/calendar.py b/evolution/evoutils/calendar.py index 7839089..e3e4e87 100644 --- a/evolution/evoutils/calendar.py +++ b/evolution/evoutils/calendar.py @@ -103,7 +103,6 @@ def insert_appointment (windowname, summary, location, description, from_date, f #setcontext ('Appointment - No summary', 'Appointment - ' + summary) time.sleep (2) if setandverify (windowname, 'txtLocation', location) == 0: - #if settextvalue (windowname, 'txtLocation', location) == 0: log ('Failed to set value in location field', 'cause') raise LdtpExecutionError (0) else: @@ -117,7 +116,7 @@ def insert_appointment (windowname, summary, location, description, from_date, f # log ('Verification of calendar combo box failed!!', 'warning') # flag = 1 if from_date != '0': - if setandverify (windowname, 'txtTextDateEntry1', from_date) == 0: + if setandverify (windowname, 'txtDate1', from_date) == 0: log ('Failed to set value in From date entry', 'cause') raise LdtpExecutionError (0) if str(from_time) != '0': @@ -125,7 +124,7 @@ def insert_appointment (windowname, summary, location, description, from_date, f log ('Failed to set value in From time entry', 'cause') raise LdtpExecutionError (0) if to_date != '0': - if setandverify (windowname, 'txtTextDateEntry1', to_date) == 0: + if setandverify (windowname, 'txtDate1', to_date) == 0: log ('Failed to set value in To date entry', 'cause') raise LdtpExecutionError (0) if str(to_time) != '0': |