This commit is contained in:
Wolfgang Hottgenroth 2009-02-20 20:44:05 +01:00
parent 4f79044c0c
commit cd502f254b

View File

@ -3,7 +3,7 @@ import time
import Event import Event
from logger import Logger from logger import Logger
from SimpleXMLRPCServer import SimpleXMLRPCServer from SimpleXMLRPCServer import SimpleXMLRPCServer
import AdminFuncs
import Entry import Entry
class LocalException(Exception): class LocalException(Exception):
@ -30,7 +30,7 @@ class XmlRpcServer(SimpleXMLRPCServer):
def export_register(self, dynid, subdomain, zone, sharedSecret, checkSum, email): def export_register(self, dynid, subdomain, zone, sharedSecret, checkSum, email):
try: try:
AdminFuncs.register(dynid, subdomain, zone, sharedSecret, checkSum) AdminFuncs.AdminFuncs.register(dynid, subdomain, zone, sharedSecret, checkSum)
return 'ok' return 'ok'
except AdminFuncs.AdminFuncException, e: except AdminFuncs.AdminFuncException, e:
return 'not ok ' + e.msg return 'not ok ' + e.msg