The basis of this change set is to provide some fixes to certain Tool Shed functions for supporting changing HTTP protocols over time (ie.e, https <-> http). In doing this, I've refactored several functions and moved most of the Tool Shed <-> Galaxy URL munging functions to the Tool Shed's common_util.py module. Ive renamed the munging functions to clarify what each of them does. Several duplicate functions have been eliminated from the code as well.

This commit is contained in:
Greg Von Kuster
2014-04-09 10:11:48 -04:00
parent dc6aba0497
commit 27e60943bf
28 changed files with 746 additions and 495 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ new_path.extend( sys.path[ 1: ] )
sys.path = new_path
import tool_shed.util.shed_util_common as suc
from tool_shed.util import common_util
from galaxy import eggs
import pkg_resources
@@ -90,7 +91,7 @@ def get_api_url( base, parts=[], params=None ):
parts.insert( 0, 'api' )
elif 'api' not in parts:
parts.insert( 0, 'api' )
url = suc.url_join( base, *parts )
url = common_util.url_join( base, *parts )
if params is not None:
try:
query_string = urllib.urlencode( params )