@page.route('/simple/<prefix>/')
def simple(prefix=''):
    (normalized, prefix) = utils.normalize_pkg_name(prefix)
    if normalized:
        return redirect('/simple/{0}/'.format(prefix))
    if (not DataAccess.has_lib(prefix)):
        abort(404)
    links = []
    for package in DataAccess.get_packages_by_lib(prefix):
        info = DataAccess.get_package(package)
        href = '/packages/{0}#md5={1}'.format(package, info.get('md5'))
        links.append(dict(file=package, href=href))
    return render_template('simple_detail.html', links=links, prefix=prefix)
@page.route('/simple/<prefix>/')
def simple(prefix=):
    (normalized, prefix) = utils.normalize_pkg_name(prefix)
    if normalized:
        return redirect('/simple/{0}/'.format(prefix))
    if (not DataAccess.has_lib(prefix)):
        abort(404)
    links = []
    for package in DataAccess.get_packages_by_lib(prefix):
        info = DataAccess.get_package(package)
        href = '/packages/{0}#md5={1}'.format(package, info.get('md5'))
        links.append(dict(file=package, href=href))
    return render_template('simple_detail.html', links=links, prefix=prefix)