improve http and xmlrpc interfaces

This commit is contained in:
Wolfgang Hottgenroth
2009-02-19 22:07:34 +01:00
parent a2d3bd6e79
commit 399483b7b5
4 changed files with 40 additions and 30 deletions

View File

@ -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)