Skip to content

Commit

Permalink
Remove unused information feature for toolshed
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Aug 8, 2017
1 parent e77fd47 commit 419f3db
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions lib/tool_shed/util/admin_util.py
Expand Up @@ -127,7 +127,7 @@ def create_role( self, trans, **kwd ):
.filter( trans.app.model.Group.table.c.deleted == false() ) \
.order_by( trans.app.model.Group.table.c.name ):
out_groups.append( ( group.id, group.name ) )
return trans.fill_template( '/admin/dataset_security/role/role_create.mako',
return trans.fill_template( '/webapps/tool_shed/admin/dataset_security/role/role_create.mako',
name=name,
description=description,
in_users=in_users,
Expand Down Expand Up @@ -175,7 +175,7 @@ def rename_role( self, trans, **kwd ):
action='roles',
message=util.sanitize_text( message ),
status='done' ) )
return trans.fill_template( '/admin/dataset_security/role/role_rename.mako',
return trans.fill_template( '/webapps/tool_shed/admin/dataset_security/role/role_rename.mako',
role=role,
message=message,
status=status )
Expand Down Expand Up @@ -266,7 +266,7 @@ def manage_users_and_groups_for_role( self, trans, **kwd ):
else:
message = "Not showing associated datasets, there are too many."
status = 'info'
return trans.fill_template( '/admin/dataset_security/role/role.mako',
return trans.fill_template( '/webapps/tool_shed/admin/dataset_security/role/role.mako',
role=role,
in_users=in_users,
out_users=out_users,
Expand Down Expand Up @@ -850,13 +850,6 @@ def users( self, trans, **kwd ):
return self.purge_user( trans, **kwd )
elif operation == "create":
return self.create_new_user( trans, **kwd )
elif operation == "information":
user_id = kwd.get( 'id', None )
if not user_id:
kwd[ 'message' ] = util.sanitize_text( "Invalid user id (%s) received" % str( user_id ) )
kwd[ 'status' ] = 'error'
else:
return trans.response.send_redirect( web.url_for( controller='user', action='information', **kwd ) )
elif operation == "manage roles and groups":
return self.manage_roles_and_groups_for_user( trans, **kwd )
if trans.app.config.allow_user_deletion:
Expand Down

0 comments on commit 419f3db

Please sign in to comment.