1 new changeset in galaxy-central:
http://bitbucket.org/galaxy/galaxy-central/changeset/b3eaa7291f56/
changeset: b3eaa7291f56
user: jgoecks
date: 2011-09-19 16:24:11
summary: Improve sorting and filtering in 'add to browser' grid.
affected #: 1 file (-1 bytes)
--- a/lib/galaxy/web/controllers/tracks.py Mon Sep 19 08:49:00 2011 -0400
+++ b/lib/galaxy/web/controllers/tracks.py Mon Sep 19 10:24:11 2011 -0400
@@ -148,17 +148,17 @@
template = "/tracks/add_to_viz.mako"
async_template = "/page/select_items_grid_async.mako"
model_class = model.Visualization
- default_filter = { "deleted" : "False" , "shared" :
"All" }
- default_sort_key = "title"
+ default_sort_key = "-update_time"
use_async = True
use_paging = False
columns = [
grids.TextColumn( "Title", key="title",
model_class=model.Visualization, filterable="standard" ),
- grids.TextColumn( "Dbkey", key="dbkey",
model_class=model.Visualization )
+ grids.TextColumn( "Dbkey", key="dbkey",
model_class=model.Visualization ),
+ grids.GridColumn( "Last Updated", key="update_time",
format=time_ago )
]
def build_initial_query( self, trans, **kwargs ):
- return trans.sa_session.query( self.model_class )
+ return trans.sa_session.query( self.model_class ).filter(
self.model_class.deleted == False )
def apply_query_filter( self, trans, query, **kwargs ):
return query.filter( self.model_class.user_id == trans.user.id )
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.