aboutsummaryrefslogtreecommitdiffstats
path: root/DominoServer.py
diff options
context:
space:
mode:
authorUlas Kozat <ulas.kozat@gmail.com>2016-06-02 09:36:48 -0700
committerUlas Kozat <ulas.kozat@gmail.com>2016-06-02 09:36:48 -0700
commitfd9248da568af0825aee8bdf612b605721c2a24b (patch)
tree7da600aff347e62bc24d00884fd90a4d04e9e834 /DominoServer.py
parentd79c943631b2d118983e60a04eb88578157d9632 (diff)
removed pyc files, added label and template subscription options to overwrite and delete existing entries
Change-Id: Ic44e6463bbdd4fc8365099d36c0d9df50b1b2249 Signed-off-by: Ulas Kozat <ulas.kozat@gmail.com>
Diffstat (limited to 'DominoServer.py')
-rwxr-xr-xDominoServer.py3
1 files changed, 3 insertions, 0 deletions
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])