[hg] galaxy 3113: Eliminate the ability to delete/undelete/purge...
details: http://www.bx.psu.edu/hg/galaxy/rev/5c46679d0755 changeset: 3113:5c46679d0755 user: Greg Von Kuster <greg@bx.psu.edu> date: Fri Nov 20 08:46:49 2009 -0500 description: Eliminate the ability to delete/undelete/purge users until the grid helper can access config settings. diffstat: lib/galaxy/web/controllers/admin.py | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diffs (23 lines): diff -r b9b9fe0612b9 -r 5c46679d0755 lib/galaxy/web/controllers/admin.py --- a/lib/galaxy/web/controllers/admin.py Thu Nov 19 18:55:35 2009 -0500 +++ b/lib/galaxy/web/controllers/admin.py Fri Nov 20 08:46:49 2009 -0500 @@ -91,14 +91,14 @@ grids.GridAction( "Create new user", dict( controller='admin', action='users', operation='create' ) ) ] operations = [ - grids.GridOperation( "Manage Roles & Groups", condition=( lambda item: not item.deleted ), allow_multiple=False ) + grids.GridOperation( "Manage Roles & Groups", condition=( lambda item: not item.deleted ), allow_multiple=False ), + grids.GridOperation( "Reset Password", condition=( lambda item: not item.deleted ), allow_multiple=True, allow_popup=False ) ] #TODO: enhance to account for trans.app.config.allow_user_deletion here so that we can eliminate these operations if # the setting is False - operations.append( grids.GridOperation( "Reset Password", condition=( lambda item: not item.deleted ), allow_multiple=True, allow_popup=False ) ) - operations.append( grids.GridOperation( "Delete", condition=( lambda item: not item.deleted ), allow_multiple=True ) ) - operations.append( grids.GridOperation( "Undelete", condition=( lambda item: item.deleted and not item.purged ), allow_multiple=True ) ) - operations.append( grids.GridOperation( "Purge", condition=( lambda item: item.deleted and not item.purged ), allow_multiple=True ) ) + #operations.append( grids.GridOperation( "Delete", condition=( lambda item: not item.deleted ), allow_multiple=True ) ) + #operations.append( grids.GridOperation( "Undelete", condition=( lambda item: item.deleted and not item.purged ), allow_multiple=True ) ) + #operations.append( grids.GridOperation( "Purge", condition=( lambda item: item.deleted and not item.purged ), allow_multiple=True ) ) standard_filters = [ grids.GridColumnFilter( "Active", args=dict( deleted=False ) ), grids.GridColumnFilter( "Deleted", args=dict( deleted=True, purged=False ) ),
participants (1)
-
Greg Von Kuster