'database_name':
os.path.abspath('/htsworkflow/htswfrontend/dev_fctracker.db'),
'time_zone': 'America/Los_Angeles',
- 'default_pm': '5'
+ 'default_pm': '5',
+ 'link_flowcell_storage_device_url': "http://localhost:8000/inventory/lts/link/"
})
options.read([os.path.expanduser("~/.htsworkflow.ini"),
#UPLOADTO_ELAND_RESULT_PACKS = os.path.join(UPLOADTO_HOME, 'eland_results')
#UPLOADTO_BED_PACKS = os.path.join(UPLOADTO_HOME, 'bed_packs')
RESULT_HOME_DIR='/Users/diane/proj/solexa/results/flowcells'
+
+LINK_FLOWCELL_STORAGE_DEVICE_URL = options.get('frontend', 'link_flowcell_storage_device_url')
+
#os.environ['DJANGO_SETTINGS_MODULE'] = 'htsworkflow.frontend.settings'
from htsworkflow.util.hdquery import get_hd_serial_num
+from htsworkflow.frontend import settings
#from django.conf import settings
from optparse import OptionParser
import sys
import urllib
-#FIXME: Remove hard coded URL
-HTSW_URL = "http://localhost:8000/inventory/lts/link/"
def construct_parser():
"""
"""
Creates link between flowcell and storage device over http
"""
- www = urllib.urlopen(HTSW_URL+'%s/%s/' % (flowcell, serial))
+ www = urllib.urlopen(settings.LINK_FLOWCELL_STORAGE_DEVICE_URL+'%s/%s/' % (flowcell, serial))
httpcode = www.getcode()
if httpcode != 200:
print 'ERROR - HTTP OUTPUT:'