From 5fb123d17b8d99b3d7bb0e91a7e3c99c5501f7fa Mon Sep 17 00:00:00 2001 From: william Date: Mon, 2 Feb 2015 13:58:06 -0500 Subject: [PATCH] response fix --- src/helper_api.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/helper_api.py b/src/helper_api.py index dc26fe5a..821bb650 100644 --- a/src/helper_api.py +++ b/src/helper_api.py @@ -882,7 +882,11 @@ returns ackdata encoded in hex. subject and message must be encoded in base64 wh ) ) shared.workerQueue.put( ( 'sendmessage', toAddress ) ) - return 200, ackdata.encode( 'hex' ) + data = { + 'ackdata': ackdata.encode( 'hex' ) + } + + return 200, data def sendBroadcast( self, *args ): '''( fromAddress, subject, message, [encodingType] ) @@ -946,7 +950,11 @@ returns ackData encoded in hex. subject and message must be encoded in base64. I ) ) shared.workerQueue.put( ( 'sendbroadcast', '' ) ) - return 200, ackdata.encode( 'hex' ) + data = { + 'ackdata': ackdata.encode( 'hex' ) + } + + return 200, data def getStatus( self, *args ): '''( ackData ) @@ -1001,6 +1009,7 @@ Subscribe to an address. label must be base64-encoded.''' shared.reloadBroadcastSendersForWhichImWatching() shared.UISignalQueue.put( ( 'rerenderInboxFromLabels', '' ) ) shared.UISignalQueue.put( ( 'rerenderSubscriptions', '' ) ) + return 200, 'Added subscription.' def addAddressToBlackWhiteList( self, *args ):