# HG changeset patch # User ft # Date 1410246966 -7200 # Node ID 11db6c7b63d22ebbe9337326b4e42d0a3ed80798 # Parent d2ab00839ba55e897df2a4ae2c14fa915872bd94 Changed notification popups (if its only information then no popup will appear) diff -r d2ab00839ba5 -r 11db6c7b63d2 src/OsecFS.py --- a/src/OsecFS.py Fri Jul 04 13:43:37 2014 +0200 +++ b/src/OsecFS.py Tue Sep 09 09:16:06 2014 +0200 @@ -189,13 +189,17 @@ def sendNotification (type, message): data = {"msgtype" : type, "text" : message} - sendDataToRest ("notification", data) + + if (type == "information"): + sendDataToRest ("message", data) + else: + sendDataToRest ("notification", data) def sendReadOnlyNotification(): sendNotification("critical", "Filesystem is in read only mode. If you want to export files please initialize an encrypted filesystem.") def sendLogNotPossibleNotification(): - sendNotification ("critical", "Send log entry to opensecurity rest server failed.") + sendNotification("critical", "Send log entry to opensecurity rest server failed.") def sendFileLog(filename, filesize, filehash, hashtype): data = {"filename" : filename, "filesize" : "%s" %(filesize,), "filehash" : filehash, "hashtype" : hashtype}