Package myproxy :: Package ws :: Package test :: Module myproxy_ws
[hide private]

Source Code for Module myproxy.ws.test.myproxy_ws

 1  #!/usr/bin/env python 
 2  """Test script to run MyProxy web service interface in the Paster web  
 3  application server. 
 4  """ 
 5  __author__ = "P J Kershaw" 
 6  __date__ = "03/08/12" 
 7  __copyright__ = "(C) 2012 Science and Technology Facilities Council" 
 8  __license__ = "BSD - see LICENSE file in top-level directory" 
 9  __contact__ = "Philip.Kershaw@stfc.ac.uk" 
10  __revision__ = "$Id: $" 
11  import logging 
12  logging.basicConfig(level=logging.DEBUG) 
13  from os import path 
14   
15  THIS_DIR = path.abspath(path.dirname(__file__)) 
16  INI_FILENAME = 'myproxywsgi.ini' 
17  ini_filepath = path.join(THIS_DIR, INI_FILENAME)  
18   
19  from paste.script.serve import ServeCommand 
20   
21  ServeCommand("serve").run([ini_filepath]) 
22