From fd9248da568af0825aee8bdf612b605721c2a24b Mon Sep 17 00:00:00 2001 From: Ulas Kozat Date: Thu, 2 Jun 2016 09:36:48 -0700 Subject: removed pyc files, added label and template subscription options to overwrite and delete existing entries Change-Id: Ic44e6463bbdd4fc8365099d36c0d9df50b1b2249 Signed-off-by: Ulas Kozat --- DominoServer.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'DominoServer.py') diff --git a/DominoServer.py b/DominoServer.py index 417144e..39c4632 100755 --- a/DominoServer.py +++ b/DominoServer.py @@ -164,13 +164,16 @@ class CommunicationHandler: if sub_msg.labels != []: if sub_msg.label_op == APPEND: + logging.debug('APPENDING Labels...') if self.dominoServer.subscribed_labels.has_key(sub_msg.domino_udid): self.dominoServer.subscribed_labels[sub_msg.domino_udid].update(set(sub_msg.labels)) else: self.dominoServer.subscribed_labels[sub_msg.domino_udid] = set(sub_msg.labels) elif sub_msg.label_op == OVERWRITE: + logging.debug('OVERWRITING Labels...') self.dominoServer.subscribed_labels[sub_msg.domino_udid] = set(sub_msg.labels) elif sub_msg.label_op == DELETE: + logging.debug('DELETING Labels...') self.dominoServer.subscribed_labels[sub_msg.domino_udid].difference_update(set(sub_msg.labels)) logging.debug('Supported Template: %s Supported Labels: %s' , self.dominoServer.subscribed_templateformats[sub_msg.domino_udid] , self.dominoServer.subscribed_labels[sub_msg.domino_udid]) -- cgit 1.2.3-korg