#!/usr/bin/env python #configure workbench to use specific service endpoints # import xmlrpclib as x import os prefix = file(os.path.expanduser("~/.astrogrid-desktop")).next().rstrip() s = x.Server(prefix + "xmlrpc") s.system.configuration.setKey( "org.astrogrid.registry.query.endpoint", "http://galahad.star.le.ac.uk:8080/galahad-registry/services/RegistryQuery") s.system.configuration.setKey( "org.astrogrid.registry.admin.endpoint", "http://galahad.star.le.ac.uk:8080/galahad-registry/services/AdminService") s.system.configuration.setKey( "jes.job.controller.endpoint", "http://galahad.star.le.ac.uk:8080/astrogrid-jes/services/JobControllerService") print "Configured endoints to" print "Registry query: " + s.system.configuration.getKey('org.astrogrid.registry.query.endpoint') print "Registry admin: " + s.system.configuration.getKey('org.astrogrid.registry.admin.endpoint') print "Job Controller: " + s.system.configuration.getKey('jes.job.controller.endpoint') print "** Restart your workbench to make the changes take effect **"