コード例 #1
0
def slideshow_intro_members(user_dict=None):
    log = logger.new(request=request, auth_dict=user_dict)
    log.info('Retrieve Intro Members Slideshow Data')

    # can't be jsonify because
    #   ValueError: dictionary update sequence element #0 has length 7; 2 is
    #   required
    return json.dumps(display_intro_evals(internal=True))
コード例 #2
0
ファイル: slideshow.py プロジェクト: sman591/conditional
def slideshow_intro_members():
    log = logger.new(user_name=request.headers.get("x-webauth-user"),
                     request_id=str(uuid.uuid4()))
    log.info('api', action='retrieve intro members slideshow data')

    # can't be jsonify because
    #   ValueError: dictionary update sequence element #0 has length 7; 2 is
    #   required
    return json.dumps(display_intro_evals(internal=True))
コード例 #3
0
def introductory_project(user_dict=None):
    log = logger.new(request=request, auth_dict=user_dict)
    log.info('Display Freshmen Project Management')

    if not ldap_is_eval_director(user_dict['account']):
        return "must be eval director", 403

    return render_template('introductory_project.html',
                           username=user_dict['username'],
                           intro_members=display_intro_evals(internal=True))
コード例 #4
0
def slideshow_intro_display(user_dict=None):
    log = logger.new(request=request, auth_dict=user_dict)
    log.info('Display Intro Slideshow')

    if not ldap_is_eval_director(user_dict['account']):
        return redirect("/dashboard")

    return render_template('intro_eval_slideshow.html',
                           username=user_dict['username'],
                           date=datetime.now().strftime("%Y-%m-%d"),
                           members=display_intro_evals(internal=True))
コード例 #5
0
def introductory_project():
    log = logger.new(user_name=request.headers.get("x-webauth-user"),
                     request_id=str(uuid.uuid4()))
    log.info('api', action='show introductory project management')

    user_name = request.headers.get('x-webauth-user')

    if not ldap_is_eval_director(user_name):
        return "must be eval director", 403

    return render_template(request,
                           'introductory_project.html',
                           username=user_name,
                           intro_members=display_intro_evals(internal=True))
コード例 #6
0
ファイル: slideshow.py プロジェクト: sman591/conditional
def slideshow_intro_display():
    log = logger.new(user_name=request.headers.get("x-webauth-user"),
                     request_id=str(uuid.uuid4()))
    log.info('frontend', action='display intro slideshow')

    user_name = request.headers.get('x-webauth-user')
    if not ldap_is_eval_director(user_name):
        return redirect("/dashboard")

    return render_template(request,
                           'intro_eval_slideshow.html',
                           username=user_name,
                           date=datetime.utcnow().strftime("%Y-%m-%d"),
                           members=display_intro_evals(internal=True))
コード例 #7
0
def introductory_project():
    log = logger.new(request=request)
    log.info('Display Freshmen Project Management')

    username = request.headers.get('x-webauth-user')
    account = ldap_get_member(username)

    if not ldap_is_eval_director(account):
        return "must be eval director", 403

    return render_template(request,
                           'introductory_project.html',
                           username=username,
                           intro_members=display_intro_evals(internal=True))
コード例 #8
0
def slideshow_intro_display():
    log = logger.new(request=request)
    log.info('Display Intro Slideshow')

    user_name = request.headers.get('x-webauth-user')
    account = ldap_get_member(user_name)

    if not ldap_is_eval_director(account):
        return redirect("/dashboard")

    return render_template(request,
                           'intro_eval_slideshow.html',
                           username=user_name,
                           date=datetime.now().strftime("%Y-%m-%d"),
                           members=display_intro_evals(internal=True))