def job(): pkg_source = findSource(channel_id, source) if pkg_source: install_pkg = pkg_source.findPackageByName(pkg_name) if install_pkg: session.set_state(pkgSource=pkg_source, pkgName=pkg_name, installPkg=install_pkg) session.route_to('/CloudSources/Packages/Install') response.render_template('index.html')
def update_cloud_source(path, session, params, request, response): """ Update package list of the package source """ pkg_source = findSource(params['channel'], params['name']) if pkg_source: pkg_source.updatePackageList() open_cloud_source(path, session, params, request, response)
def job(): pkg_source = findSource(params['channel'], params['name']) session.set_state(pkgSource=pkg_source) session.route_to('/CloudSources/Packages') response.render_template('index.html')