except FileNotFoundError:
cache = None
- ex_account = ex_login("mv3@sanger.ac.uk",".gooswapper_exch_conf.dat")
+ ex_account = ex_login("ISGGroup@sanger.ac.uk",".gooswapper_exch_conf.dat")
current = get_ex_events(ex_account.calendar)
gcal_account = gcal_login()
- gcal_tz = get_gcal_timezone(gcal_account)
+ gcal_tz = get_gcal_timezone(gcal_account,calendarid="sanger.ac.uk_tldg578ouopoin86ckt1kdrpcc@group.calendar.google.com")
if cache is not None:
added,deleted,changed = ex_event_changes(cache,current)
- add_ex_to_gcal(ex_account,gcal_account,gcal_tz,current,added)
+ add_ex_to_gcal(ex_account,gcal_account,gcal_tz,current,added,
+ gcal_id="sanger.ac.uk_tldg578ouopoin86ckt1kdrpcc@group.calendar.google.com")
#delete op needs the "cache" set, as that has the link ids in
#for events that are now deleted
- del_ex_to_gcal(ex_account,gcal_account,cache,deleted)
- update_ex_to_gcal(ex_account,gcal_account,gcal_tz,current,changed)
+ del_ex_to_gcal(ex_account,gcal_account,cache,deleted,
+ gcal_id="sanger.ac.uk_tldg578ouopoin86ckt1kdrpcc@group.calendar.google.com")
+ update_ex_to_gcal(ex_account,gcal_account,gcal_tz,current,changed,
+ gcal_id="sanger.ac.uk_tldg578ouopoin86ckt1kdrpcc@group.calendar.google.com")
else:
- toadd = match_ex_to_gcal(ex_account,gcal_account,gcal_tz,current)
- add_ex_to_gcal(ex_account,gcal_account,gcal_tz,current,toadd)
+ toadd = match_ex_to_gcal(ex_account,gcal_account,gcal_tz,current,
+ gcal_id="sanger.ac.uk_tldg578ouopoin86ckt1kdrpcc@group.calendar.google.com")
+ add_ex_to_gcal(ex_account,gcal_account,gcal_tz,current,toadd,
+ gcal_id="sanger.ac.uk_tldg578ouopoin86ckt1kdrpcc@group.calendar.google.com")
with open(cachepath,"wb") as f:
pickle.dump(current,f)