Files
galaxy/scripts/api/form_create_from_xml.py
T
Daniel Blankenberg 7b7453366f Initial pass on API for forms, request_type, users and roles.
Additional effort is needed to abstract more previously existing functionality out of web controllers.

Add script that is able to create a sequencer configuration for the sample tracking system using API.
2010-12-02 16:04:34 -05:00

16 lines
356 B
Python

#!/usr/bin/env python
import os, sys
sys.path.insert( 0, os.path.dirname( __file__ ) )
from common import submit
try:
data = {}
data[ 'xml_text' ] = open( sys.argv[3] ).read()
except IndexError:
print 'usage: %s key url form_xml_description_file' % os.path.basename( sys.argv[0] )
sys.exit( 1 )
submit( sys.argv[1], sys.argv[2], data )