def get_installed_tool_shed_repository(app, id):
 rval = []
 if isinstance(id, list):
  return_list = True
 else:
  id = [id]
  return_list = False
 for i in id:
  rval.append(app.install_model.context.query(app.install_model.ToolShedRepository).get(app.security.decode_id(i)))
 if return_list:
  return rval
 return rval[0]

def get_installed_tool_shed_repository ( app , id ) : rval = [ ] if isinstance ( id , list ) : return_list = True else : id = [ id ] return_list = False for i in id : rval . append ( app . install_model . context . query ( app . install_model . ToolShedRepository ) . get ( app . security . decode_id ( i ) ) ) if return_list : return rval return rval [ 0 ]
get a tool shed repository record from the galaxy database defined by the id .