1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/8953f799206e/ changeset: 8953f799206e user: greg date: 2011-10-13 21:35:45 summary: Sort the list of tool shed repositories by name when populating the grid for matching tools, but eliminate all grid column sorting. affected #: 1 file (-1 bytes) --- a/lib/galaxy/webapps/community/controllers/repository.py Thu Oct 13 15:21:18 2011 -0400 +++ b/lib/galaxy/webapps/community/controllers/repository.py Thu Oct 13 15:35:45 2011 -0400 @@ -239,16 +239,14 @@ title = "Matched repositories" model_class = model.RepositoryMetadata template='/webapps/community/repository/grid.mako' - default_sort_key = "name" + default_sort_key = "Repository.name" columns = [ NameColumn( "Name", - key="name", link=( lambda item: dict( operation="view_or_manage_repository", id=item.id, webapp="community" ) ), attach_popup=True ), DescriptionColumn( "Synopsis", - key="description", attach_popup=False ), RevisionColumn( "Revision" ), UserColumn( "Owner", @@ -272,14 +270,11 @@ int( repository_id ), self.model_class.table.c.changeset_revision, changeset_revision ) ) - q = trans.sa_session.query( self.model_class ) \ - .join( model.Repository ) \ - .join( model.User.table ) \ - .filter( or_( *clause_list ) ) return trans.sa_session.query( self.model_class ) \ .join( model.Repository ) \ .join( model.User.table ) \ - .filter( or_( *clause_list ) ) + .filter( or_( *clause_list ) ) \ + .order_by( model.Repository.name ) # Return an empty query return trans.sa_session.query( self.model_class ) \ .join( model.Repository ) \ 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.