addAddressBook and deleteAddressBook API calls #482

Merged
grant-olson merged 2 commits from add_delete_addressbook into master 2013-09-05 20:06:06 +02:00
Showing only changes of commit bfd79e0ae1 - Show all commits

View File

@ -205,7 +205,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
elif method == 'addAddressBook' or method == 'addAddressbook':
if len(params) != 2:
raise APIError(0, "I need label and address")
label, address = params
address, label = params
label = self._decode(label, "base64")
address = addBMIfNotPresent(address)
self._verifyAddress(address)