コード例 #1
0
def seed_asset1():
    assets = []
    a = asset(
        'Biophysical',
        'the biotic and abiotic attributes present within the boundaries of the PA'
    )
    db.session.add(a)
    db.session.commit()

    b = asset('Scenic beauty', description="", parent_id=a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(asset('Vistas and panoramas', "", b.id))

    c = asset('Natural Features and formations', "", a.id)
    db.session.add(c)
    db.session.commit()
    assets.append(
        asset('Topographic', "waterfalls, white water mountain ranges", c.id))
    assets.append(asset('Geomorphic', "cliffs, caves, inselbergs etc.", c.id))

    d = asset('Natural spectacles', "", a.id)
    db.session.add(d)
    db.session.commit()
    assets.append(
        asset(
            'Biotic',
            "mating aggregations, congregations, predator - prey interactions, autumn colours.",
            d.id))
    assets.append(asset('Abiotic', "Geysers, volcanic eruptions.", d.id))

    e = asset('Renewable Natural Resources', "", a.id)
    db.session.add(e)
    db.session.commit()

    assets.append(
        asset(
            'Biodiversity / Genetic resources',
            "e.g.species diversity, for bio - prospecting or ancestors of crops or domestic animals, etc.",
            e.id))
    assets.append(
        asset('Non Timber Products',
              "medicinal plants, foods, resins, fruits, fungi, etc.", e.id))
    assets.append(asset('Timber', "", e.id))
    assets.append(asset('Fish and Game', "", e.id))
    assets.append(asset('Carbon stocks', "", e.id))
    assets.append(asset('Wind for wind power', "", e.id))
    assets.append(asset('River flows for hydro - power', "", e.id))

    f = asset('Non - renewable Natural resources', "", a.id)
    db.session.add(f)
    db.session.commit()
    assets.append(asset('Minerals', "", f.id))
    assets.append(asset('Oil, Gas, coal', "", f.id))
    assets.append(asset('Fossils', "", f.id))

    g = asset('Species Assets', "", a.id)
    db.session.add(g)
    db.session.commit()
    assets.append(
        asset('Iconic and emblematic species or individuals',
              "famous animals, state symbols, brands, etc.", g.id))
    assets.append(
        asset('Species of conservation importance',
              "rare species, endemic species, keystone species, etc.", g.id))
    assets.append(
        asset('Species of recreational importance',
              "e.g. recreational fisheries, etc.", g.id))
    assets.append(asset('Species of economical importance', "", g.id))

    h = asset('Ecosystem Assets', "", a.id)
    db.session.add(h)
    db.session.commit()
    assets.append(asset('Habitat / ecosystem diversity', "", h.id))
    assets.append(
        asset('Habitat of highly restricted / endangered species', "", h.id))
    assets.append(
        asset(
            'Ecosystem functions that create supporting ecosystem services',
            "nutrient recycling, primary production, soil formation, pollination",
            h.id))
    assets.append(
        asset(
            'Ecosystem functions that create regulating ecosystem services',
            "Carbon sequestration, Hydrological cycling / watershed, Decomposition, Predation, Population cycling",
            h.id))

    i = asset('Outdoor recreation assetsfeatures',
              "e.g.white - water, climbable cliff - face, ski - slope, etc.",
              a.id)
    db.session.add(i)
    db.session.commit()

    j = asset('Agricultural land, water and soil resource', "'.", a.id)
    db.session.add(j)
    db.session.commit()

    assets.append(asset('Existing agricultural or pasture lands', "", j.id))
    assets.append(asset('Existing fisheries or aquaculture', "", j.id))
    assets.append(
        asset(
            'Existing fisheries or aquaculture',
            "Land or waters with suitability for existing agriculture or aquaculture",
            j.id))

    for at in assets:
        db.session.add(at)
    db.session.commit()
コード例 #2
0
def seed_asset5():
    assets = []

    a = asset(
        'Cultural Assets',
        "the interactions between the PA and wider cultural practices and narratives that create a public identity for the PA."
    )
    db.session.add(a)
    db.session.commit()

    b = asset('Brand / emblem based on biophysical PA asset', "e.g.manatee",
              a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(asset('e.g.manateePublic ', "e.g.municipality)", b.id))
    assets.append(asset('Commercial', "", b.id))
    assets.append(asset('Civil society ', "NGO, sportclub, etc.)", b.id))

    b = asset('Creative interpretations', "", a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(
        asset('Iconic imagery ', "e.g.classic landscape photos)", b.id))
    assets.append(
        asset('Other artistic interpretations ',
              "e.g.paintings, lyrics, novels", b.id))

    b = asset('Cultural events', "e.g. fairs and festivals", a.id)
    db.session.add(b)
    db.session.commit()

    b = asset('Media representations', "e.g.manatee", a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(
        asset('Print media', "e.g.guide books, coffee table books", b.id))
    assets.append(asset('Audio-visual', "e.g.TV documentaries", b.id))
    assets.append(
        asset('Digital presence', "e.g.websites, social networks, etc.", b.id))

    b = asset('Myths and legends associated with the PA',
              "e.g.folk myths, associations with famous events", a.id)
    db.session.add(b)
    db.session.commit()

    b = asset('Celebrity associations',
              "e.g.famous person or popular celebrity", a.id)
    db.session.add(b)
    db.session.commit()

    b = asset('Recreational clubs and associations', "", a.id)
    db.session.add(b)
    db.session.commit()

    b = asset(
        'Monuments',
        "e.g.monumental sculptures, cave paintings, ruins, remains of past",
        a.id)
    db.session.add(b)
    db.session.commit()

    b = asset('Buildings of architectural value', "modern or historical", a.id)
    db.session.add(b)
    db.session.commit()

    b = asset('Educational programmes', "", a.id)
    db.session.add(b)
    db.session.commit()

    for at in assets:
        db.session.add(at)
    db.session.commit()
コード例 #3
0
def seed_asset3():
    assets = []

    a = asset(
        'Infrastructure Assets',
        "the facilities that have been constructed in, around or to the PA that enable value generation and capture."
    )
    db.session.add(a)
    db.session.commit()

    b = asset('Private Transport Access (to PA)', "", a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(asset('Roads', "", b.id))
    assets.append(asset('Carparks or marinas', "", b.id))

    b = asset('Public transport access (to PA)', "", a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(asset('Bus service (to the PA)', "", b.id))
    assets.append(asset('Ferry service (to the PA)', "", b.id))
    assets.append(asset('Rail service (to the nearest town)', "", b.id))
    assets.append(asset('Taxi service (car or boat)', "", b.id))
    assets.append(asset('Airstrip', "", b.id))

    b = asset('PA Visitor infrastructure', "", a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(
        asset('Trail systems', "e.g.trails, viewpoints, signage", b.id))
    assets.append(asset('Bridges and walkways', "", b.id))
    assets.append(asset('Internal PA transport', "cable car, tram, etc.",
                        b.id))
    assets.append(asset('Accommodation', "hotels, hostels, homestays", b.id))
    assets.append(asset('Camp sites', "", b.id))
    assets.append(
        asset('Visitor amenities',
              "(e.g.information centre, cafe, toilets, shops, picnic sites)",
              b.id))
    assets.append(asset('Zoological and botanical gardens, museums', "", b.id))

    b = asset('Park management assets', "", a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(asset('Offices and workshops', "", b.id))
    assets.append(
        asset('Other property / buildings',
              "e.g.staff accommodation, derelict houses, etc.", b.id))
    assets.append(asset('Vehicles ', "e.g.cars, tractors", b.id))
    assets.append(
        asset('Major equipment ', "e.g.radio station, fire towers", b.id))
    assets.append(
        asset('Plant nursery and captive breeding facilities', "", b.id))

    b = asset('Public utilities available to the park', "", a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(asset('Electricity', "", b.id))
    assets.append(asset('Potable water', "", b.id))
    assets.append(asset('Sewerage', "", b.id))
    assets.append(asset('Telephone', "", b.id))
    assets.append(asset('Broadband', "", b.id))

    b = asset('Emergency services accessible to PA users',
              "e.g.helicopter evacuation, paramedic ambulance", a.id)
    db.session.add(b)
    db.session.commit()

    b = asset('Research infrastructure',
              "e.g.permanent plot, canopy tower, herbarium, library, etc.",
              a.id)
    db.session.add(b)
    db.session.commit()

    b = asset('Built monument and public artwork',
              "e.g.sculpture, religious shrine", a.id)
    db.session.add(b)
    db.session.commit()

    b = asset('Dams', "", a.id)
    db.session.add(b)
    db.session.commit()

    for at in assets:
        db.session.add(at)
    db.session.commit()
コード例 #4
0
def seed_asset4():
    assets = []

    a = asset(
        'Institutional Assets',
        "the legal frameworks that construct a PA and the structures and contractual agreements that conserve assets and enable value generation and capture from them."
    )
    db.session.add(a)
    db.session.commit()

    b = asset('Conservation designations', "", a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(
        asset('National PA designations (e.g.SNUC type, RPPN)', "", b.id))
    assets.append(
        asset(
            'International PA designations (Ramsar, World heritage, Biosphere reserve)',
            "", b.id))
    assets.append(
        asset('NGO site designations (e.g.KBA, IBA, AZA, etc.)', "", b.id))

    b = asset('Decision making structure', "", a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(asset('Management plans', "", b.id))
    assets.append(asset('Zonation plans', "", b.id))
    assets.append(
        asset('Governance entities ',
              "e.g.advisory boards, stakeholder group)", b.id))

    b = asset('Partnership and commercial agreements', "", a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(asset('Community and co-management agreements', "", b.id))
    assets.append(asset('PES contracts', "e.g.REDD agreement", b.id))
    assets.append(asset('Commercial sponsorship agreements', "", b.id))
    assets.append(
        asset(
            'Concessionaire agreements ',
            "ecotourism and recreation companies, visitor amenity providers",
            b.id))
    assets.append(
        asset('Budget supplement agreement ',
              "e.g.ICMS_Ecologico agreement with municipality", b.id))
    assets.append(asset('Research agreement ', "e.g.university partner", b.id))
    assets.append(
        asset('Other agreements ',
              "e.g.Governance - partners to solve land invasion", b.id))

    for at in assets:
        db.session.add(at)
    db.session.commit()
コード例 #5
0
def seed_asset2():
    assets = []

    a = asset(
        'Human Assets',
        "the groups of people associated with the protected area with knowledge and / or skills that enable the conservation of PA assets and the generation and capture of value from these assets."
    )
    db.session.add(a)
    db.session.commit()

    b = asset('Park technical and management staff', "", a.id)
    db.session.add(b)
    db.session.commit()
    assets.append(asset('Permanent', "e.g. government employees", b.id))
    assets.append(asset('Temporary', "e.g. contract staff", b.id))

    c = asset('Park rangers', "", a.id)
    db.session.add(c)
    db.session.commit()

    c = asset('Guides', "", a.id)
    db.session.add(c)
    db.session.commit()

    c = asset('Park volunteers', "members of Friends Groups", a.id)
    db.session.add(c)
    db.session.commit()

    c = asset('Researchers', "", a.id)
    db.session.add(c)
    db.session.commit()

    c = asset(
        'Traditional peoples with local ecological and resource use knowledge',
        "e.g.artisanal fishermen, herbalists, Shamans / Caciques, etc.", a.id)
    db.session.add(c)
    db.session.commit()

    c = asset('Researchers', "e.g.birdwatchers, cavers, etc.", a.id)
    db.session.add(c)
    db.session.commit()

    c = asset('Fireman', "", a.id)
    db.session.add(c)
    db.session.commit()

    for at in assets:
        db.session.add(at)
    db.session.commit()