# HG changeset patch # User Matti Hamalainen # Date 1467631822 -10800 # Node ID 1bce0c6a673ca6de4c0a970cbad06b90cc732280 # Parent ff47f8088ef98c69b4d80098617f2520e667572d Comments. diff -r ff47f8088ef9 -r 1bce0c6a673c multimerge.py --- a/multimerge.py Mon Jul 04 14:20:56 2016 +0300 +++ b/multimerge.py Mon Jul 04 14:30:22 2016 +0300 @@ -69,12 +69,13 @@ gcm_msgbuf.append(u"DBG: "+ smsg.encode("UTF-8")) -## Handle SIGINT signals here +## Handler for SIGINT signals def gcm_signal_handler(signal, frame): gcm_print("\nQuitting due to SIGINT / Ctrl+C!") sys.exit(0) +## Function for handling Google API credentials def gcm_get_credentials(mcfg): store = oauth2client.file.Storage(mcfg.credential_file) credentials = store.get() @@ -94,8 +95,9 @@ gcm_print(u"{0:25} - {1:25} : {2}".format(ev_start, ev_end, event["summary"])) - - +## +## Class for handling configuration / settings +## class GCMSettings(dict): def __init__(self): self.m_data = {}