#!/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") centralServer="http://grendel02.roe.ac.uk:8080" s.system.configuration.setKey( "org.astrogrid.registry.query.endpoint", centralServer+"/astrogrid-registry-1.1/services/RegistryQuery") s.system.configuration.setKey( "org.astrogrid.registry.admin.endpoint", centralServer+"/astrogrid-registry-1.1/services/AdminService") s.system.configuration.setKey( "jes.job.controller.endpoint", centralServer+"/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 **"