source: TI07-MOLES/trunk/PythonCode/newDiscovery/testtemplate.py @ 1583

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI07-MOLES/trunk/PythonCode/newDiscovery/testtemplate.py@1583
Revision 1583, 415 bytes checked in by lawrence, 13 years ago (diff)

Yet more renaming ...

Line 
1import template
2from Utilities import myConfig
3from DiscoveryGUI import DiscoveryGUI
4
5def output(f,s):
6    ff=file(f,'w')
7    ff.write(s)
8    ff.close()
9
10config=myConfig('config.test')
11print config.get('SEARCH','discoveryURL')
12
13inputs={}
14x=DiscoveryGUI(inputs,config)
15print x.message
16output("main.html",x.html)
17
18inputs={'advanced':'1'}
19x=DiscoveryGUI(inputs,config)
20print x.message
21output("advanced.html",x.html)
22
23
Note: See TracBrowser for help on using the repository browser.