Project

General

Profile

« Previous | Next » 

Revision 13464

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

View differences:

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