commit/galaxy-central: greg: Enhance several of the repository review grids to enable sorting by repository owner.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/6ed903aff045/ Changeset: 6ed903aff045 User: greg Date: 2013-04-19 20:59:37 Summary: Enhance several of the repository review grids to enable sorting by repository owner. Affected #: 1 file diff -r ac8f6516735f7c68859e3f0cd124e19b39c77ac7 -r 6ed903aff045656cdfb519c571627af750675aef lib/tool_shed/grids/repository_review_grids.py --- a/lib/tool_shed/grids/repository_review_grids.py +++ b/lib/tool_shed/grids/repository_review_grids.py @@ -136,7 +136,10 @@ key="name", link=( lambda item: dict( operation="view_or_manage_repository", id=item.id ) ), attach_popup=True ), - RepositoryGrid.UserColumn( "Owner", attach_popup=False ), + RepositoryGrid.UserColumn( "Owner", + model_class=model.User, + attach_popup=False, + key="User.username" ), WithReviewsRevisionColumn( "Reviewed revisions" ), ReviewersColumn( "Reviewers", attach_popup=False ), RatingColumn( "Rating", attach_popup=False ), @@ -177,7 +180,9 @@ attach_popup=False ), RepositoriesWithReviewsGrid.WithoutReviewsRevisionColumn( "Revisions for review" ), RepositoriesWithReviewsGrid.UserColumn( "Owner", - attach_popup=False ) + model_class=model.User, + attach_popup=False, + key="User.username" ) ] columns.append( grids.MulticolFilterColumn( "Search repository name, description", cols_to_filter=[ columns[ 0 ], columns[ 1 ] ], @@ -213,7 +218,9 @@ attach_popup=False ), RepositoriesWithoutReviewsGrid.WithoutReviewsRevisionColumn( "Revisions for review" ), RepositoriesWithoutReviewsGrid.UserColumn( "Owner", - attach_popup=False ) + model_class=model.User, + attach_popup=False, + key="User.username" ) ] columns.append( grids.MulticolFilterColumn( "Search repository name, description", cols_to_filter=[ columns[ 0 ], columns[ 1 ] ], 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.
participants (1)
-
commits-noreply@bitbucket.org