Revision 13464
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/tnrs.py | ||
---|---|---|
1 | 1 |
# TNRS |
2 | 2 |
|
3 |
import os.path |
|
3 | 4 |
import re |
4 | 5 |
import sys |
5 | 6 |
import time |
... | ... | |
20 | 21 |
max_names = 500 # the maximum above crashes the TNRS server |
21 | 22 |
|
22 | 23 |
# Protocol params |
23 |
server = 'tnrs.iplantcollaborative.org' |
|
24 |
server = streams.file_get_contents(os.path.dirname(__file__)+"/tnrs.url") |
|
25 |
#server = 'tnrs.iplantcollaborative.org' # live server |
|
24 | 26 |
url_base = 'http://'+server+'/tnrsdemo/' |
25 | 27 |
url = url_base+'search' |
26 | 28 |
initial_headers = { |
Also available in: Unified diff
lib/tnrs.py: use the TNRS dev server (with private URL in tnrs.url) instead of the live server, since that contains datasources that we need