コード例 #1
0
def canada():

    if not g.user:

        return redirect("/home")
    country = 'US'  #api is a canadian travel api and so doesnt have canadian advisories since that is their home country
    name = 'Canada'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #2
0
def australia_newzealand():

    if not g.user:

        return redirect("/home")
    country = 'AU'
    name = 'Australia & New Zealand'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #3
0
def black_sea():

    if not g.user:

        return redirect("/home")
    country = 'TR'  #uses Turkey
    name = 'Black Sea'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #4
0
def trinitobago():

    if not g.user:

        return redirect("/home")
    country = 'TT'
    name = 'Trinidad & Tobago'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #5
0
def uruguay():

    if not g.user:

        return redirect("/")
    country = 'UY'
    name = 'Uruguay'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #6
0
def chile():

    if not g.user:

        return redirect("/home")
    country = 'CL'
    name = 'Chile'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #7
0
ファイル: countries.py プロジェクト: petitepirate/psoPayScale
def gulf_of_mexico():

    if not g.user:

        return redirect("/home")
    country = 'US'
    name = 'Gulf of Mexico'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #8
0
ファイル: countries.py プロジェクト: petitepirate/psoPayScale
def north_sea():

    if not g.user:

        return redirect("/home")
    country = 'GB'  #uses england but could use norway
    name = 'North Sea'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #9
0
ファイル: countries.py プロジェクト: petitepirate/psoPayScale
def nw_africa_morocco():

    if not g.user:

        return redirect("/home")
    country = 'MA'
    name = 'NW Africa / Morocco'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #10
0
ファイル: countries.py プロジェクト: petitepirate/psoPayScale
def arctic_ocean():

    if not g.user:

        return redirect("/home")
    country = 'GL'  # No real country code for arctic - uses greenland since thats the likely launching place
    name = 'Arctic Ocean'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #11
0
ファイル: countries.py プロジェクト: petitepirate/psoPayScale
def north_atlantic():

    if not g.user:

        return redirect("/home")
    country = 'US'
    name = 'US East Coast (N. Atlantic Ocean)'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #12
0
ファイル: countries.py プロジェクト: petitepirate/psoPayScale
def mexico():

    if not g.user:

        return redirect("/home")
    country = 'MX'
    name = 'Mexico (Pacific Ocean)'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #13
0
ファイル: countries.py プロジェクト: petitepirate/psoPayScale
def mediterranean():

    if not g.user:

        return redirect("/home")
    country = 'EG'  #uses egypt
    name = 'Mediterranean Sea'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #14
0
ファイル: countries.py プロジェクト: petitepirate/psoPayScale
def india_srilanka():

    if not g.user:

        return redirect("/home")
    country = 'IN'
    name = 'India & Sri Lanka'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #15
0
def caribbean():

    if not g.user:

        return redirect("/home")
    country = 'BS'  #uses Bahamas
    name = 'Caribbean'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #16
0
ファイル: countries.py プロジェクト: petitepirate/psoPayScale
def persian_gulf():

    if not g.user:

        return redirect("/home")
    country = 'QA'  #uses Qatar
    name = 'Persian Gulf'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #17
0
def caspian_sea():

    if not g.user:

        return redirect("/home")
    country = 'IR'  #uses Iran
    name = 'Caspian Sea'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #18
0
def skorea_japan():

    if not g.user:

        return redirect("/home")
    country = 'JP'
    name = 'South Korea & Japan'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #19
0
ファイル: countries.py プロジェクト: petitepirate/psoPayScale
def falkland_islands():

    if not g.user:

        return redirect("/home")
    country = 'FK'
    name = 'Falkland Islands'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)
コード例 #20
0
def ghana():

    if not g.user:

        return redirect("/home")
    country = 'GH'
    jobs = (Job.query.filter(Job.location == "Ghana").all())
    name = 'Ghana'
    advisory = get_advisory(country)

    listofrates = get_list(name)
    data = zip(TITLES, listofrates)

    jobs = get_jobs(name)

    return render_template('/country.html',
                           jobs=jobs,
                           name=name,
                           listofrates=listofrates,
                           data=data,
                           advisory=advisory)