API #67

Merged
Atheros1 merged 6 commits from master into master 2013-03-21 18:31:09 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 48ff6c0c7e - Show all commits

View File

@ -13,7 +13,7 @@ print api.helloWorld(inputstr1, inputstr2)
print api.add(2,3) print api.add(2,3)
print 'Let\'s set the status bar message.' print 'Let\'s set the status bar message.'
print api.statusbar("new status bar message") print api.statusBar("new status bar message")
print 'Let\'s list our addresses:' print 'Let\'s list our addresses:'
print api.listAddresses() print api.listAddresses()

View File

@ -3323,7 +3323,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
elif method == 'add': elif method == 'add':
(a,b) = params (a,b) = params
return a+b return a+b
elif method == 'statusbar': elif method == 'statusBar':
message, = params message, = params
apiSignalQueue.put(('updateStatusBar',message)) apiSignalQueue.put(('updateStatusBar',message))
elif method == 'listAddresses': elif method == 'listAddresses':