Esempio n. 1
0
File: server.py Progetto: Kapin/rmc
def schedule_screenshot_url():
    user = view_helpers.get_current_user()

    return util.json_dumps({
        # Note that this may be None
        "url": schedule_screenshot.get_screenshot_url(user)
    })
Esempio n. 2
0
def schedule_screenshot_url():
    user = view_helpers.get_current_user()

    return util.json_dumps({
        # Note that this may be None
        "url": schedule_screenshot.get_screenshot_url(user)
    })
Esempio n. 3
0
File: v1.py Progetto: rbarraud/rmc
def get_user_schedule(user_id):
    user = _get_user_require_auth(user_id)
    schedule_item_dict_list = user.get_schedule_item_dicts()
    screenshot_url = schedule_screenshot.get_screenshot_url(user)

    return api_util.jsonify({
        'schedule': schedule_item_dict_list,
        'screenshot_url': screenshot_url,
    })
Esempio n. 4
0
def get_user_schedule(user_id):
    user = _get_user_require_auth(user_id)
    schedule_item_dict_list = user.get_schedule_item_dicts()
    screenshot_url = schedule_screenshot.get_screenshot_url(user)

    return api_util.jsonify({
        'schedule': schedule_item_dict_list,
        'screenshot_url': screenshot_url,
    })