diff options
author | 2016-06-02 09:36:48 -0700 | |
---|---|---|
committer | 2016-06-02 09:36:48 -0700 | |
commit | fd9248da568af0825aee8bdf612b605721c2a24b (patch) | |
tree | 7da600aff347e62bc24d00884fd90a4d04e9e834 /DominoServer.py | |
parent | d79c943631b2d118983e60a04eb88578157d9632 (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-x | DominoServer.py | 3 |
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]) |