From 0805725a6f13f5a43581c94c50d37cd2f1941848 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 27 Sep 2017 19:13:35 -0400 Subject: [PATCH] Calendar Data Transfer support --- src/gam.py | 2 -- src/var.py | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gam.py b/src/gam.py index 65885bfc..69efe685 100755 --- a/src/gam.py +++ b/src/gam.py @@ -1958,8 +1958,6 @@ def user_from_userid(userid): buildUserIdToNameMap() return GM_Globals[GM_MAP_USER_ID_TO_NAME].get(userid, u'') -SERVICE_NAME_TO_ID_MAP = {u'Drive and Docs': u'55656082996', u'Google+': u'553547912911',} - def appID2app(dt, appID): for serviceName, serviceID in SERVICE_NAME_TO_ID_MAP.items(): if appID == serviceID: diff --git a/src/var.py b/src/var.py index ab51661a..bb434633 100644 --- a/src/var.py +++ b/src/var.py @@ -138,11 +138,18 @@ ADDRESS_FIELDS_ARGUMENT_MAP = { u'country': u'countryCode', u'countrycode': u'countryCode', } +SERVICE_NAME_TO_ID_MAP = { + u'Drive and Docs': u'55656082996', + u'Google+': u'553547912911', + u'Calendar': u'435070579839' + } + SERVICE_NAME_CHOICES_MAP = { u'drive': u'Drive and Docs', u'drive and docs': u'Drive and Docs', u'googledrive': u'Drive and Docs', u'gdrive': u'Drive and Docs', + u'calendar': u'Calendar', } PRINTJOB_ASCENDINGORDER_MAP = {