def get_tool_shed_repository_by_id(app, repository_id):
 return app.install_model.context.query(app.install_model.ToolShedRepository).filter((app.install_model.ToolShedRepository.table.c.id == app.security.decode_id(repository_id))).first()

def get_tool_shed_repository_by_id ( app , repository_id ) : return app . install_model . context . query ( app . install_model . ToolShedRepository ) . filter ( ( app . install_model . ToolShedRepository . table . c . id == app . security . decode_id ( repository_id ) ) ) . first ( )
return a tool shed repository database record defined by the id .