From 9646b8329a84f3ee57818e8f1e1dfaf73ab7f061 Mon Sep 17 00:00:00 2001 From: william Date: Mon, 2 Feb 2015 11:01:49 -0500 Subject: [PATCH] small fixes --- src/helper_api.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/helper_api.py b/src/helper_api.py index c6bb84ea..dc26fe5a 100644 --- a/src/helper_api.py +++ b/src/helper_api.py @@ -68,9 +68,10 @@ class _handle_request( object ): this = object.__getattribute__( self.apiDir, method ) if this.__doc__ != None: data.append( { - 'mathod': method, + 'method': method, 'doc': this.__doc__ } ) + return 200, data def statusBar( self, *args ): @@ -111,6 +112,7 @@ chan (bool)''' 'enabled': shared.config.getboolean(addressInKeysFile, 'enabled'), 'chan': chan } ) + return 200, data def listAddressBookEntries( self, *args ): @@ -250,7 +252,7 @@ Warning: At present, Bitmessage gets confused if you use both the API and the UI return 200, data def createDeterministicAddresses( self, *args ): # needs to be tested - ''' ( passphrase> [numberOfAddresses] [addressVersionNumber] [streamNumber] [eighteenByteRipe] [totalDifficulty] [smallMessageDifficulty] ) + ''' ( passphrase [numberOfAddresses] [addressVersionNumber] [streamNumber] [eighteenByteRipe] [totalDifficulty] [smallMessageDifficulty] ) Similar to createRandomAddress except that you may generate many addresses in one go. passphrase should be base64 encoded. numberOfAddresses defaults to 1. addressVersionNumber and streamNumber may be set to 0 which will tell Bitmessage to use the most up-to-date addressVersionNumber and the most available streamNumber. Using zero for each of these fields is recommended. eighteenByteRipe defaults to False. totalDifficulty and smallMessageDifficulty default to 1. Returns a list of new addresses. This list will be empty if the addresses already existed. Warning: At present, Bitmessage gets confused if you use both the API and the UI to make addresses at the same time.'''