From a692f60f6cfe4e24727f01042b1e1019846c7846 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 24 Feb 2012 12:37:30 +0100 Subject: [PATCH] go for a unique config URL for the federica xmlrpc service --- config/default_config.xml | 27 ++++----------------------- sfa/federica/fdshell.py | 6 +----- 2 files changed, 5 insertions(+), 28 deletions(-) diff --git a/config/default_config.xml b/config/default_config.xml index eeca137f..b08f738e 100644 --- a/config/default_config.xml +++ b/config/default_config.xml @@ -282,30 +282,11 @@ Thierry Parmentelat The settings that tell this SFA instance how to interact with the FEDERICA testbed. - - FEDERICA login name for an admin user; SFA will carry on operations under this account. - root - - - - - Password - rootpassword - The PLC password for SFA_PLC_USER. - - - - XMLRPC hostname - federica.net - Hostname for the federica xmlrpc interface. - - - - XMLRPC port number - 10000 - Port number for the federica xmlrpc interface. + + XMLRPC URL + https://root:password@federica.sfa.wrapper.com:8443/fedewrapper/xmlrpc/ + URL for the federica xmlrpc API; login and password need to be set like in http://login:password@hostname:port/the/path - diff --git a/sfa/federica/fdshell.py b/sfa/federica/fdshell.py index 7195b565..1b290b05 100644 --- a/sfa/federica/fdshell.py +++ b/sfa/federica/fdshell.py @@ -18,11 +18,7 @@ class FdShell: ] def __init__ ( self, config ) : - # xxx to be configurable - SFA_FEDERICA_URL = "http://%s:%s@%s:%s/"%\ - (config.SFA_FEDERICA_USER,config.SFA_FEDERICA_PASSWORD, - config.SFA_FEDERICA_HOSTNAME,config.SFA_FEDERICA_PORT) - url=SFA_FEDERICA_URL + url=config.SFA_FEDERICA_URL # xxx not sure if java xmlrpc has support for None # self.proxy = xmlrpclib.Server(url, verbose = False, allow_none = True) # xxx turn on verbosity -- 2.43.0