mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
- eliminated the transfer_datasets.ini config file - eliminated the data transfer user - now the admin user initiating the data transfer is used as the data transfer user. - the admin user is provided the add_library_item permission before data transfer if they dont have it - sample update & data transfer amqp messages now includes api_key
28 lines
786 B
Python
28 lines
786 B
Python
#======= XML helper methods ====================================================
|
|
|
|
import xml.dom.minidom
|
|
|
|
def get_value( dom, tag_name ):
|
|
'''
|
|
This method extracts the tag value from the xml message
|
|
'''
|
|
nodelist = dom.getElementsByTagName( tag_name )[ 0 ].childNodes
|
|
rc = ""
|
|
for node in nodelist:
|
|
if node.nodeType == node.TEXT_NODE:
|
|
rc = rc + node.data
|
|
return rc
|
|
|
|
def get_value_index( dom, tag_name, dataset_id ):
|
|
'''
|
|
This method extracts the tag value from the xml message
|
|
'''
|
|
try:
|
|
nodelist = dom.getElementsByTagName( tag_name )[ dataset_id ].childNodes
|
|
except:
|
|
return None
|
|
rc = ""
|
|
for node in nodelist:
|
|
if node.nodeType == node.TEXT_NODE:
|
|
rc = rc + node.data
|
|
return rc |