[hg] galaxy 2679: Eliminate buttons from shared history grid tha...
details: http://www.bx.psu.edu/hg/galaxy/rev/ed4cbaf23c88 changeset: 2679:ed4cbaf23c88 user: Greg Von Kuster <greg@bx.psu.edu> date: Fri Sep 11 09:00:36 2009 -0400 description: Eliminate buttons from shared history grid that were not meant to be committed. 1 file(s) affected in this change: lib/galaxy/web/controllers/history.py diffs (35 lines): diff -r f0adb6152df9 -r ed4cbaf23c88 lib/galaxy/web/controllers/history.py --- a/lib/galaxy/web/controllers/history.py Thu Sep 10 21:24:06 2009 -0400 +++ b/lib/galaxy/web/controllers/history.py Fri Sep 11 09:00:36 2009 -0400 @@ -104,9 +104,7 @@ ] operations = [ grids.GridOperation( "Clone" ), - grids.GridOperation( "Unshare" ), - grids.GridOperation( "Enable import via link", condition=( lambda item: item.deleted ) ), - grids.GridOperation( "Disable import via link", condition=( lambda item: item.deleted ) ) + grids.GridOperation( "Unshare" ) ] standard_filters = [] def build_initial_query( self, session ): @@ -280,20 +278,6 @@ association.flush() message = "Unshared %d shared histories" % len( ids ) status = 'done' - elif operation == "enable import via link": - if ids: - histories = [ get_history( trans, id ) for id in ids ] - for history in histories: - if not history.importable: - history.importable = True - history.flush() - elif operation == "disable import via link": - if ids: - histories = [ get_history( trans, id ) for id in ids ] - for history in histories: - if history.importable: - history.importable = False - history.flush() # Render the list view return self.shared_list_grid( trans, status=status, message=message, **kwargs ) @web.expose
participants (1)
-
Greg Von Kuster