2 new commits in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/changeset/801e7cf8227f/
changeset: 801e7cf8227f
user: dan
date: 2012-12-06 22:26:02
summary: Fix for text area formbuilder when None is provided for size.
affected #: 1 file
diff -r 449f0ed92b4621093d2e1b38dee5894f2a9b959e -r 801e7cf8227fd2b9294a6140d0580b3c78f705fe lib/galaxy/web/form_builder.py
--- a/lib/galaxy/web/form_builder.py
+++ b/lib/galaxy/web/form_builder.py
@@ -67,8 +67,10 @@
>>> print TextArea( "bins", size="4x5", value="default" ).get_html()
<textarea name="bins" rows="4" cols="5">default</textarea>
"""
- def __init__( self, name, size="5x25", value=None ):
+ _DEFAULT_SIZE = "5x25"
+ def __init__( self, name, size=None, value=None ):
self.name = name
+ size = size or self._DEFAULT_SIZE
self.size = size.split("x")
self.rows = int(self.size[0])
self.cols = int(self.size[-1])
https://bitbucket.org/galaxy/galaxy-central/changeset/78a3508c4562/
changeset: 78a3508c4562
user: dan
date: 2012-12-06 22:26:02
summary: Fix for error reporting link due to client-side history change (id is now encoded id).
affected #: 1 file
diff -r 801e7cf8227fd2b9294a6140d0580b3c78f705fe -r 78a3508c456296bd7bd578f5c8dd121d7206fef8 lib/galaxy/webapps/galaxy/controllers/dataset.py
--- a/lib/galaxy/webapps/galaxy/controllers/dataset.py
+++ b/lib/galaxy/webapps/galaxy/controllers/dataset.py
@@ -168,7 +168,12 @@
@web.expose
def errors( self, trans, id ):
- hda = trans.sa_session.query( model.HistoryDatasetAssociation ).get( id )
+ try:
+ hda = trans.sa_session.query( model.HistoryDatasetAssociation ).get( id )
+ except:
+ hda = None
+ if not hda:
+ hda = trans.sa_session.query( model.HistoryDatasetAssociation ).get( trans.security.decode_id( id ) )
if not hda or not self._can_access_dataset( trans, hda ):
return trans.show_error_message( "Either this dataset does not exist or you do not have permission to access it." )
return trans.fill_template( "dataset/errors.mako", hda=hda )
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/changeset/449f0ed92b46/
changeset: 449f0ed92b46
user: jgoecks
date: 2012-12-06 22:13:56
summary: When creating a new visualization for a dataset, default to dataset's dbkey.
affected #: 1 file
diff -r e20afb791a6685c40440743a5973ff17ba90e875 -r 449f0ed92b4621093d2e1b38dee5894f2a9b959e lib/galaxy/webapps/galaxy/controllers/visualization.py
--- a/lib/galaxy/webapps/galaxy/controllers/visualization.py
+++ b/lib/galaxy/webapps/galaxy/controllers/visualization.py
@@ -691,25 +691,33 @@
Display browser for the visualization denoted by id and add the datasets listed in `dataset_ids`.
"""
+ # Get dataset to add.
+ new_dataset_id = kwargs.get( "dataset_id", None )
+
# Set up new browser if no id provided.
if not id:
+ # Use dbkey from dataset to be added or from incoming parameter.
+ dbkey = None
+ if new_dataset_id:
+ dbkey = self.get_dataset( trans, new_dataset_id ).dbkey
+ if dbkey == '?':
+ dbkey = kwargs.get( "dbkey", None )
+
return trans.fill_template( "tracks/browser.mako", config={},
- add_dataset=kwargs.get("dataset_id", None),
- default_dbkey=kwargs.get("dbkey", None) )
+ add_dataset=new_dataset_id,
+ default_dbkey=dbkey )
# Display saved visualization.
vis = self.get_visualization( trans, id, check_ownership=False, check_accessible=True )
viz_config = self.get_visualization_config( trans, vis )
- # Get new dataset if specified.
- new_dataset = kwargs.get("dataset_id", None)
'''
FIXME:
if new_dataset is not None:
if trans.security.decode_id(new_dataset) in [ d["dataset_id"] for d in viz_config.get("tracks") ]:
new_dataset = None # Already in browser, so don't add
'''
- return trans.fill_template( 'tracks/browser.mako', config=viz_config, add_dataset=new_dataset )
+ return trans.fill_template( 'tracks/browser.mako', config=viz_config, add_dataset=new_dataset_id )
@web.expose
def circster( self, trans, id=None, hda_ldda=None, dataset_id=None, dbkey=None ):
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/changeset/e20afb791a66/
changeset: e20afb791a66
user: jgoecks
date: 2012-12-06 20:38:49
summary: Add needed imports that went away after removing 'import *'
affected #: 2 files
diff -r c0b5edcce53c541c8eaf3a2f80390c84b1f721fb -r e20afb791a6685c40440743a5973ff17ba90e875 lib/galaxy/webapps/galaxy/controllers/page.py
--- a/lib/galaxy/webapps/galaxy/controllers/page.py
+++ b/lib/galaxy/webapps/galaxy/controllers/page.py
@@ -1,4 +1,4 @@
-from sqlalchemy import desc
+from sqlalchemy import desc, and_
from galaxy import model, web
from galaxy.web import error, url_for
from galaxy.model.item_attrs import UsesAnnotations, UsesItemRatings
diff -r c0b5edcce53c541c8eaf3a2f80390c84b1f721fb -r e20afb791a6685c40440743a5973ff17ba90e875 lib/galaxy/webapps/galaxy/controllers/visualization.py
--- a/lib/galaxy/webapps/galaxy/controllers/visualization.py
+++ b/lib/galaxy/webapps/galaxy/controllers/visualization.py
@@ -1,10 +1,11 @@
from __future__ import absolute_import
-from sqlalchemy import desc
+from sqlalchemy import desc, or_, and_
from galaxy import model, web
from galaxy.model.item_attrs import UsesAnnotations, UsesItemRatings
from galaxy.web.base.controller import BaseUIController, SharableMixin, UsesVisualizationMixin
from galaxy.web.framework.helpers import time_ago, grids, iff
+from galaxy.util.json import from_json_string
from galaxy.util.sanitize_html import sanitize_html
from galaxy.visualization.genomes import decode_dbkey
from galaxy.visualization.genome.visual_analytics import get_dataset_job
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/changeset/c0b5edcce53c/
changeset: c0b5edcce53c
user: greg
date: 2012-12-06 15:38:14
summary: Add care in handling information retrieved from the tool shed by Galaxy.
affected #: 1 file
diff -r 9cf72c86ee4f37c9035cdc30912b4f33a0f6b3bb -r c0b5edcce53c541c8eaf3a2f80390c84b1f721fb lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
--- a/lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
+++ b/lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
@@ -1099,7 +1099,12 @@
filtered_repo_info_dicts = []
for repo_info_dict in repo_info_dicts:
for name, repo_info_tuple in repo_info_dict.items():
- description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, repository_dependencies, tool_dependencies = repo_info_tuple
+ # Take care in handling the repo_info_tuple as it evolves over time as new features are introduced.
+ if len( repo_info_tuple ) == 6:
+ description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, tool_dependencies = repo_info_tuple
+ repository_dependencies = None
+ elif len( repo_info_tuple ) == 7:
+ description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, repository_dependencies, tool_dependencies = repo_info_tuple
clone_dir = os.path.join( tool_path, self.generate_tool_path( repository_clone_url, changeset_revision ) )
relative_install_dir = os.path.join( clone_dir, name )
# Make sure the repository was not already installed.
@@ -1208,7 +1213,11 @@
repo_info_dict = repo_info_dicts[ 0 ]
name = repo_info_dict.keys()[ 0 ]
repo_info_tuple = repo_info_dict[ name ]
- description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, repository_dependencies, tool_dependencies = repo_info_tuple
+ if len( repo_info_tuple ) == 6:
+ description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, tool_dependencies = repo_info_tuple
+ repository_dependencies = None
+ elif len( repo_info_tuple ) == 7:
+ description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, repository_dependencies, tool_dependencies = repo_info_tuple
url = url_join( tool_shed_url,
'repository/get_readme_files?name=%s&owner=%s&changeset_revision=%s' % \
( name, repository_owner, changeset_revision ) )
@@ -1396,7 +1405,11 @@
# Handle case where the repository was previously installed using an older changeset_revsion, but later the repository was updated
# in the tool shed and now we're trying to install the latest changeset revision of the same repository instead of updating the one
# that was previously installed. We'll look in the database instead of on disk since the repository may be uninstalled.
- description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, repository_dependencies, tool_dependencies = repo_info_tuple
+ if len( repo_info_tuple ) == 6:
+ description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, tool_dependencies = repo_info_tuple
+ repository_dependencies = None
+ elif len( repo_info_tuple ) == 7:
+ description, repository_clone_url, changeset_revision, ctx_rev, repository_owner, repository_dependencies, tool_dependencies = repo_info_tuple
tool_shed = get_tool_shed_from_clone_url( repository_clone_url )
# Get all previous change set revisions from the tool shed for the repository back to, but excluding, the previous valid changeset
# revision to see if it was previously installed using one of them.
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/changeset/75a97c971d36/
changeset: 75a97c971d36
user: natefoo
date: 2012-12-05 23:50:23
summary: Allow matching in tool_handlers and tool_runners on toolshed guid, toolshed guid minus version, and based (old) id. Matching occurs in that order (more specific IDs override less specific ones).
affected #: 1 file
diff -r 42a6e3f82c0d2c5ec5bd4af1fca3bac125ffe9c9 -r 75a97c971d36599955f67384b6f36ca73a80dd2e lib/galaxy/tools/__init__.py
--- a/lib/galaxy/tools/__init__.py
+++ b/lib/galaxy/tools/__init__.py
@@ -993,17 +993,24 @@
else:
self.parallelism = None
# Set job handler(s). Each handler is a dict with 'url' and, optionally, 'params'.
- self_id = self.id.lower()
+ self_ids = [ self.id.lower() ]
+ if self.old_id != self.id:
+ # Handle toolshed guids
+ self_ids = [ self.id.lower(), self.id.lower().rsplit('/',1)[0], self.old_id.lower() ]
self.job_handlers = [ { "name" : name } for name in self.app.config.default_job_handlers ]
# Set custom handler(s) if they're defined.
- if self_id in self.app.config.tool_handlers:
- self.job_handlers = self.app.config.tool_handlers[ self_id ]
+ for self_id in self_ids:
+ if self_id in self.app.config.tool_handlers:
+ self.job_handlers = self.app.config.tool_handlers[ self_id ]
+ break
# Set job runner(s). Each runner is a dict with 'url' and, optionally, 'params'.
# Set job runner to the cluster default
self.job_runners = [ { "url" : self.app.config.default_cluster_job_runner } ]
# Set custom runner(s) if they're defined.
- if self_id in self.app.config.tool_runners:
- self.job_runners = self.app.config.tool_runners[ self_id ]
+ for self_id in self_ids:
+ if self_id in self.app.config.tool_runners:
+ self.job_runners = self.app.config.tool_runners[ self_id ]
+ break
# Is this a 'hidden' tool (hidden in tool menu)
self.hidden = util.xml_text(root, "hidden")
if self.hidden: self.hidden = util.string_as_bool(self.hidden)
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/changeset/1b8fd73e2a54/
changeset: 1b8fd73e2a54
user: greg
date: 2012-12-05 16:55:29
summary: Fix for displaying repository dependencies when installing a tool shed repository.
affected #: 1 file
diff -r 6304eb6a91103121ed6d6bf960b6bc9984966259 -r 1b8fd73e2a5464fd2caab261dbf10017f119185d lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
--- a/lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
+++ b/lib/galaxy/webapps/galaxy/controllers/admin_toolshed.py
@@ -1242,8 +1242,9 @@
encoded_repo_info_dicts=encoded_repo_info_dicts,
includes_tools=includes_tools,
includes_tool_dependencies=includes_tool_dependencies,
+ install_tool_dependencies_check_box=install_tool_dependencies_check_box,
+ includes_repository_dependencies=includes_repository_dependencies,
install_repository_dependencies_check_box=install_repository_dependencies_check_box,
- install_tool_dependencies_check_box=install_tool_dependencies_check_box,
new_tool_panel_section=new_tool_panel_section,
containers_dict=containers_dict,
shed_tool_conf=shed_tool_conf,
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.