Пример #1
0
def metadatas():
    """
    Presents a form for the user to view/download.
    """
    f = MetadataForm()
    f.data_provider.choices = zip(sorted(region_map.iterkeys()),
                                  sorted(region_map.iterkeys()))
    f.asset_type.choices = []

    return render_template("metadata_form.html", form=f)
Пример #2
0
def metadatas():
    """
    Presents a form for the user to view/download.
    """
    f                 = MetadataForm()
    f.data_provider.choices = zip(sorted(region_map.iterkeys()), sorted(region_map.iterkeys()))
    f.asset_type.choices = []

    return render_template("metadata_form.html",
                           form=f)
Пример #3
0
def catalog_map(filter_provider):
    # filter_provider ultimately is do-nothing arg that serves as a placeholder
    # for the location to be processed by javascript

    g.title = "Catalog Map"
    regions = sorted(region_map.iterkeys())

    return render_template('catalog_map.html', regions=regions)
Пример #4
0
def catalog_map(filter_provider):
    # filter_provider ultimately is do-nothing arg that serves as a placeholder
    # for the location to be processed by javascript

    g.title = "Catalog Map"
    regions = sorted(region_map.iterkeys())
    # does not filter out types by region
    asset_types = sorted(db.services.distinct('service_type'))

    return render_template('catalog_map.html', regions=regions,
                           asset_types=asset_types)
Пример #5
0
def asset_map():

    g.title = "Asset Map"
    regions = sorted(region_map.iterkeys())

    return render_template('asset_map.html', regions=regions)