source: TI07-MOLES/trunk/PythonCode/browse/portal/cgi/browse/testDiscovery.py @ 1586

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI07-MOLES/trunk/PythonCode/browse/portal/cgi/browse/testDiscovery.py@1586
Revision 1586, 424 bytes checked in by lawrence, 13 years ago (diff)

First cut of standalone discovery code ... integrated into one python
module with the browe stuff ... (next steps include split into two
parents and one child egg as well as making it actually work).

Line 
1import DiscoveryTemplate
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.