# -*- coding: utf-8 -*-
# $Id: soapwrapper.py 1634 2013-04-12 15:36:36Z amelung $
#
import os
#import sys
#import time
import logging
#import threading
#from threading import Thread
#from urllib2 import URLError
#from copy import deepcopy
#from types import StringTypes
# Python build-in xmlrpclib
import xmlrpclib
# spyne
#from spyne.model.primitive import Integer
#from spyne.model.primitive import String
#from spyne.model.primitive import AnyDict
#from spyne.model.primitive import Mandatory
try:
except ImportError:
print("Error: example server code requires Python >= 2.5")
raise
# local imports
#from lib.data.dto import BackendStatus
"""
"""
global __host
"""
"""
global __port
def _get_spooler_proxy():
"""
"""
"""
"""
"""
"""
"""
Returns the process ID
@param authdata: username and password for authentication
@return: current process ID
"""
#sp = _get_spooler_proxy()
#state = sp.getStatus(_get_user_auth_dict(username, password))
return result
"""
Returns status information such aus PID, number of tests and
result in the queue as well as a list with IDs of all registered
backends.
@param username:
@param password:
@throws Exception:
"""
sp = _get_spooler_proxy()
result = SpoolerState()
return result
#@srpc(Unicode, Unicode, _returns=AnyDict)
sp = _get_spooler_proxy()
result = []
#print name
#print values
#backend.url = values['url']
#backend.isBusy = values['isBusy']
return result
sp = _get_spooler_proxy()
result = []
else:
return result
sp = _get_spooler_proxy()
result = []
return result
sp = _get_spooler_proxy()
answers = []
return answers
sp = _get_spooler_proxy()
return answer
sp = _get_spooler_proxy()
# create job data dict with mandatory keys
'submission' : submission,
'tests' : tests
}
# add options
for x in options:
return append
# ==============================================================================
if __name__ == '__main__':
"""
"""
#logging.basicConfig(level=logging.INFO)
#logging.getLogger('spyne.protocol.xml').setLevel(logging.INFO)
set_spooler_host("0.0.0.0")
set_spooler_port(5050)