コード例 #1
0
ファイル: app.py プロジェクト: ghl3/IveGotBeef
def api_latest_beef():
    """ Get a list of the lastest beef topics

    """
    try:
        response = beef.latest()
    except:
        print traceback.format_exc()
        return jasonify(flag=1)

    return response
コード例 #2
0
def api_latest_beef():
    """ Get a list of the lastest beef topics

    """
    try:
        response = beef.latest()
    except:
        print traceback.format_exc()
        return jasonify(flag=1)

    return response
コード例 #3
0
ファイル: app.py プロジェクト: ghl3/IveGotBeef
def index():
    """ The base of the site, ie the index

    """
    
    try:
        beef_list = beef.latest(10)
    except:
        print traceback.format_exc()
        return render_template('500.html')
        
    return render_template('index.html', beef_list=beef_list )
コード例 #4
0
def index():
    """ The base of the site, ie the index

    """

    try:
        beef_list = beef.latest(10)
    except:
        print traceback.format_exc()
        return render_template('500.html')

    return render_template('index.html', beef_list=beef_list)