コード例 #1
0
def home():
    if not current_user.is_anonymous():
        return dashboard()
    # FIXME: Figure out what to put here
    from datahub.model import Account
    accounts = Account.query.all()
    return render_template('home.html', accounts=accounts)
コード例 #2
0
ファイル: __init__.py プロジェクト: pombredanne/datahub
def home():
    if not current_user.is_anonymous():
        return dashboard()
    # FIXME: Figure out what to put here
    from datahub.model import Account
    accounts = Account.query.all()
    return render_template('home.html', accounts=accounts)
コード例 #3
0
ファイル: util.py プロジェクト: Spencerx/datahub-deprecated
def logged_in():
    return not current_user.is_anonymous()
コード例 #4
0
ファイル: util.py プロジェクト: pombredanne/datahub
def logged_in():
    return not current_user.is_anonymous()