Dave Bouvier
64c1bc95c9
Fix the 3xx redirect handler in the tool shed's API methods to correctly handle PUT requests.
2014-06-11 16:05:46 -04:00
Dave Bouvier
dd82de6cd1
Additional fixes for urllib2's 3xx redirects not handling POST requests. This changeset handles httpd proxies that redirect to a secure port before delivering the request to Paste.
2014-06-10 11:11:32 -04:00
Greg Von Kuster
08702be139
Fixes for the Tool Shed API POST and PUT requests that were broken when attempting to handle urllib2 not handling 307 redirects. The initial attempt at handling the urllib2 weakness made a call to urllib2.get_url() which turns POST requests into GET requests as a side-effect.
2014-06-10 10:33:48 -04:00
Dannon Baker
ed94d528d8
Detail why the 307 redirect tracking attempt in tool_shed/scripts/api/common.py does not work.
2014-06-09 17:02:27 -04:00
Greg Von Kuster
5d56c27f9c
More fixes for handling 307 redirects not being handled nicely by urllib2.urlopen() when the urllib2.Request has data provided.
2014-06-08 08:45:16 -04:00
Greg Von Kuster
0285192a4c
Fix the exception handler in the Tool Shed APi submit() function so that an expected dict is returned instead of a string.
2014-06-04 09:21:18 -04:00
Greg Von Kuster
b2f3d6a551
Continued down-sizing of the Tool Shed's shed_util_common module by moving certain functions to more appropriate locations. Some fixes for adding and removing entries to the Tool Shed's repository registry.
2014-05-28 11:17:50 -04:00
Greg Von Kuster
27e60943bf
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.
2014-04-09 10:11:48 -04:00
Greg Von Kuster
e01cc26dd1
Fixes and code cleanup for the tool shed's install and test framework.
2014-01-20 11:48:05 -05:00
Dannon Baker
c1558e8205
One more simplejson/json fix that slipped through the merge.
2014-01-10 07:42:58 -05:00
Dannon Baker
a40457ab09
Merge.
2014-01-10 07:40:02 -05:00
Dannon Baker
559ecb4ec8
Remove dependency on simplejson; convert everything over to using the json module in the python standard library.
2014-01-10 07:29:05 -05:00
Greg Von Kuster
3014265a07
Tool Shed API fixes and code cleanup.
2014-01-09 15:59:18 -05:00
Greg Von Kuster
f96fdc565f
Fixes for the tool shed's install and test framework and enhancements to allow a configurable number of test runs to be stored and displayed.
2013-11-27 15:28:03 -05:00
Dannon Baker
0f120bd92c
Strip trailing whitespace (and windows line endings) from all python files in lib
2013-08-29 23:39:52 -04:00
Greg Von Kuster
cf96dccddb
Add the ability to export a specified repository revision from the tool shed to a gzip compressed archive saved locally. The ability to import this archive to the same or another tool shed is not yet implemented, but coming soon. All of the repository's repository dependencies can optionally be exported into the same archive. The archive includes a manifest.xml file that contains the order in whcih the repositories in the archive must be imported.
...
This feature is now available for any installable revision of a repository using the new "Export this revision" option in the Repository actions menu in the browser. It is also available via the Tool Shed API using a command like the following:
export.py --url http://testtoolshed.g2.bx.psu.edu --name chemicaltoolbox --owner bgruening --revision 4133dbf7ff4d --export_repository_dependencies True --download_dir /tmp
2013-08-02 19:30:03 -04:00
Greg Von Kuster
6267972180
Refactor several methods in Galaxy's admin_toolshed controller in preparation for supporting installing tool shed repositories via the tool shed and Galaxy APIs.
2013-03-23 10:44:46 -04:00