improve http and xmlrpc interfaces
This commit is contained in:
@ -28,17 +28,15 @@ class XmlRpcServer(SimpleXMLRPCServer):
|
||||
else:
|
||||
return func(*params)
|
||||
|
||||
def export_register(self, dynid, subdomain, zone, sharedSecret, email):
|
||||
def export_register(self, dynid, subdomain, zone, sharedSecret, checkSum, email):
|
||||
try:
|
||||
AdminFuncs.register(dynid, subdomain, zone, sharedSecret)
|
||||
AdminFuncs.register(dynid, subdomain, zone, sharedSecret, checkSum)
|
||||
return 'ok'
|
||||
except AdminFuncs.AdminFuncException, e:
|
||||
return 'not ok ' + e.msg
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class XmlRpcReceiver(threading.Thread):
|
||||
def __init__(self, xmlRpcRecvAddr, entries, adminPwd):
|
||||
threading.Thread.__init__(self)
|
||||
|
Reference in New Issue
Block a user