mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-29 17:42:12 +08:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user