1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/cd73af9c02e7/
Changeset: cd73af9c02e7
User: davebgx
Date: 2014-04-16 15:23:09
Summary: Remove stray debug output.
Affected #: 1 file
diff -r f3c5d9a5ed95956442dbd39e9ce97367cdc0d93b -r cd73af9c02e7f94d76239c010da12fcf1f91d1d4 lib/galaxy/datatypes/metadata.py
--- a/lib/galaxy/datatypes/metadata.py
+++ b/lib/galaxy/datatypes/metadata.py
@@ -637,7 +637,6 @@
# for the compute server.
def metadata_path_on_compute(path):
compute_path = path
- log.info(compute_tmp_dir)
if compute_tmp_dir and tmp_dir and in_directory(path, tmp_dir):
path_relative = os.path.relpath(path, tmp_dir)
compute_path = os.path.join(compute_tmp_dir, path_relative)
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/f3c5d9a5ed95/
Changeset: f3c5d9a5ed95
User: davebgx
Date: 2014-04-16 15:18:56
Summary: Modify test framework to account for recent UI changes.
Affected #: 2 files
diff -r 6f698dec58950f0f56421a13474df0359c0777d7 -r f3c5d9a5ed95956442dbd39e9ce97367cdc0d93b test/base/twilltestcase.py
--- a/test/base/twilltestcase.py
+++ b/test/base/twilltestcase.py
@@ -385,12 +385,6 @@
return value == hda[ key ]
return False
- def clear_history( self ):
- """Empties a history of all datasets"""
- self.visit_page( "clear_history" )
- self.check_history_for_string( 'Your history is empty' )
- self.home()
-
def delete_history( self, id ):
"""Deletes one or more histories"""
history_list = self.get_histories_as_data_list()
@@ -466,7 +460,8 @@
self.visit_url( "%s/history_new?name=%s" % ( self.url, name ) )
else:
self.visit_url( "%s/history_new" % self.url )
- self.check_history_for_string('Your history is empty')
+ self.check_page_for_string( 'New history created' )
+ assert self.is_history_empty(), 'Creating new history did not result in an empty history.'
self.home()
def rename_history( self, id, old_name, new_name ):
diff -r 6f698dec58950f0f56421a13474df0359c0777d7 -r f3c5d9a5ed95956442dbd39e9ce97367cdc0d93b test/functional/test_history_functions.py
--- a/test/functional/test_history_functions.py
+++ b/test/functional/test_history_functions.py
@@ -98,7 +98,7 @@
if not historyB.deleted:
raise AssertionError( "Problem deleting history id %d" % historyB.id )
# Since we deleted the current history, make sure the history frame was refreshed
- self.check_history_for_string( 'Your history is empty.' )
+ assert self.is_history_empty(), 'Deleting active history did not result in a new empty history being created.'
# We'll now test deleting a list of histories
# After deleting the current history, a new one should have been created
global history1
@@ -121,7 +121,7 @@
ids = '%s,%s' % ( self.security.encode_id( history1.id ), self.security.encode_id( history2.id ) )
self.delete_history( ids )
# Since we deleted the current history, make sure the history frame was refreshed
- self.check_history_for_string( 'Your history is empty.' )
+ assert self.is_history_empty(), 'Deleting active history did not result in a new empty history being created.'
try:
self.view_stored_active_histories( strings_displayed=[ history1.name ] )
raise AssertionError( "History %s is displayed in the active history list after it was deleted" % history1.name )
@@ -790,7 +790,7 @@
self.check_page_for_string( 'hg15' )
self.assertEqual( len( self.get_history_as_data_list() ), 1 )
# Delete the history item
- self.delete_history_item( str( latest_hda.id ), strings_displayed=[ "Your history is empty" ] )
+ self.delete_history_item( str( latest_hda.id ), strings_displayed=[] )
self.assertEqual( len( self.get_history_as_data_list() ), 0 )
# Try deleting an invalid hid
try:
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/1da9460ee1d0/
Changeset: 1da9460ee1d0
User: carlfeberhard
Date: 2014-04-15 21:40:48
Summary: Fix to dcc0c19 when user controller isn't present, gen. defensive programming
Affected #: 1 file
diff -r 5e079414e9f9ca489229816553e5133f5b3d5c0e -r 1da9460ee1d0d5f3f89a767e41c40b5188af988c templates/galaxy_client_app.mako
--- a/templates/galaxy_client_app.mako
+++ b/templates/galaxy_client_app.mako
@@ -5,11 +5,17 @@
## and steal existing attributes from plain objects already created
<%
config_dict = {}
- if 'configuration' in trans.webapp.api_controllers:
- config_dict = ( trans.webapp.api_controllers[ 'configuration' ]
- .get_config_dict( trans.app.config, trans.user_is_admin() ) )
+ user_dict = {}
+ try:
+ if 'configuration' in trans.webapp.api_controllers:
+ config_dict = ( trans.webapp.api_controllers[ 'configuration' ]
+ .get_config_dict( trans.app.config, trans.user_is_admin() ) )
- user_dict = self.get_user_dict()
+ if 'users' in trans.webapp.api_controllers:
+ user_dict = self.get_user_dict()
+
+ except Exception, exc:
+ pass
# genomes
# datatypes
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/f7983ecf5ea7/
Changeset: f7983ecf5ea7
User: dan
Date: 2014-04-15 20:01:21
Summary: Provide run and edit links for workflows after extraction from history.
Affected #: 1 file
diff -r 3a154b52090316dee61f42993eaa5a1fa40116d3 -r f7983ecf5ea7c15e5c4235f079e86943576fbdba lib/galaxy/webapps/galaxy/controllers/workflow.py
--- a/lib/galaxy/webapps/galaxy/controllers/workflow.py
+++ b/lib/galaxy/webapps/galaxy/controllers/workflow.py
@@ -1201,7 +1201,7 @@
history=history
)
else:
- extract_workflow(
+ stored_workflow = extract_workflow(
trans,
user=user,
job_ids=job_ids,
@@ -1209,9 +1209,10 @@
workflow_name=workflow_name
)
# Index page with message
- return trans.show_message( "Workflow '%s' created from current history." % workflow_name )
- ## return trans.show_ok_message( "<p>Workflow '%s' created.</p><p><a target='_top' href='%s'>Click to load in workflow editor</a></p>"
- ## % ( workflow_name, web.url_for(controller='workflow', action='editor', id=trans.security.encode_id(stored.id) ) ) )
+ workflow_id = trans.security.encode_id( stored_workflow.id )
+ return trans.show_message( 'Workflow "%s" created from current history. You can <a href="%s" target="_parent">edit</a> or <a href="%s">run</a> the workflow.' %
+ ( workflow_name, url_for( controller='workflow', action='editor', id=workflow_id ),
+ url_for( controller='workflow', action='run', id=workflow_id ) ) )
@web.expose
def run( self, trans, id, history_id=None, multiple_input_mode="product", hide_fixed_params=False, **kwargs ):
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/9ea6c8749ab1/
Changeset: 9ea6c8749ab1
User: natefoo
Date: 2014-04-15 19:27:36
Summary: Remove old platforms and versions from platform string manipulation. Egg compatibility enhancements for OS X. Galaxy's prepackaged OS X eggs should now work on any Python interpreter on Intel versions of OS X 10.6 and newer.
Affected #: 1 file
diff -r dcc0c19147ead86c6e357c739e0513addfe02cb2 -r 9ea6c8749ab13e8a4e0d917bf3b49d09b43f55e1 lib/galaxy/__init__.py
--- a/lib/galaxy/__init__.py
+++ b/lib/galaxy/__init__.py
@@ -4,24 +4,36 @@
__import__( "pkg_resources" ).declare_namespace( __name__ )
-import os, sys, re
-from distutils.sysconfig import get_config_var, get_config_vars
+import re
+import os
+import sys
+import platform
import pkg_resources
# patch get_platform() for better ABI recognition
def _get_build_platform():
plat = pkg_resources._get_build_platform()
- if sys.version_info[:2] == ( 2, 5 ) and \
- ( ( os.uname()[-1] in ( 'x86_64', 'i386', 'ppc' ) and sys.platform == 'darwin' and os.path.abspath( sys.prefix ).startswith( '/System' ) ) or \
- ( sys.platform == 'darwin' and get_config_vars().get('UNIVERSALSDK', '').strip() ) ):
- plat = 'macosx-10.3-fat'
- if sys.platform == "sunos5" and not (plat.endswith('_32') or plat.endswith('_64')):
- if sys.maxint > 2**31:
- plat += '_64'
- else:
- plat += '_32'
- if sys.platform == "linux2" and sys.maxint < 2**31 and plat.endswith( '-x86_64' ):
+ if sys.platform == 'darwin':
+ # Assert OS X version is new enough
+ current_minor_ver = int( platform.mac_ver()[0].split( '.' )[1] )
+ assert current_minor_ver >= 6, 'Galaxy is not compatible with Mac OS X < 10.6 (your version is %s)' % platform.mac_ver()[0]
+ # Python build target may be even older, but this will prevent it from
+ # fetching our 10.6+ eggs, so fix if necessary (newer versions will be
+ # fine)
+ plat_split = plat.split( '-' )
+ build_minor_ver = int( plat_split[1].split( '.' )[1] )
+ if build_minor_ver < 6:
+ plat_split[1] = '10.6'
+ # Our intel (dual arch) eggs will work fine on single-arch builds
+ if plat_split[-1] in ( 'i386', 'x86_64' ):
+ plat_split[-1] = 'intel'
+ # Ditto universal (if you're not on PPC)
+ if plat_split[-1] == 'universal' and platform.processor() != 'powerpc':
+ plat_split[-1] = 'intel'
+ plat = '-'.join( plat_split )
+ elif sys.platform == "linux2" and sys.maxint < 2**31 and plat.endswith( '-x86_64' ):
+ # 32 bit Python on 64 bit Linux
plat = plat.replace( '-x86_64', '-i686' )
if not (plat.endswith('-ucs2') or plat.endswith('-ucs4')):
if sys.maxunicode > 2**16:
@@ -36,34 +48,6 @@
pkg_resources.get_build_platform = _get_build_platform
pkg_resources.get_platform = _get_build_platform
-# patch compatible_platforms() to allow for Solaris binary compatibility
-solarisVersionString = re.compile(r"solaris-(\d)\.(\d+)-(.*)")
-def _compatible_platforms(provided,required):
- # this is a bit kludgey since we need to know a bit about what happened in
- # the original method
- if provided is None or required is None or provided==required:
- return True # easy case
- reqMac = pkg_resources.macosVersionString.match(required)
- if reqMac:
- return pkg_resources._compatible_platforms(provided,required)
- reqSol = solarisVersionString.match(required)
- if reqSol:
- provSol = solarisVersionString.match(provided)
- if not provSol:
- return False
- if provSol.group(1) != reqSol.group(1) or \
- provSol.group(3) != reqSol.group(3):
- return False
- if int(provSol.group(2)) > int(reqSol.group(2)):
- return False
- return True
- return False
-try:
- assert pkg_resources._compatible_platforms
-except:
- pkg_resources._compatible_platforms = pkg_resources.compatible_platforms
- pkg_resources.compatible_platforms = _compatible_platforms
-
# patch to insert eggs at the beginning of sys.path instead of at the end
def _insert_on(self, path, loc = None):
"""Insert self.location in path before its nearest parent directory"""
@@ -108,4 +92,4 @@
pass
logging.NullHandler = NullHandler
-import galaxy.eggs
\ No newline at end of file
+import galaxy.eggs
Repository URL: https://bitbucket.org/galaxy/galaxy-central/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.