예제 #1
0
def get_sitemap():
    # 返回reboots文件
    sitemap_txt_path = r'sitemap/sitemap.txt'
    return app.send_static_file(sitemap_txt_path)
예제 #2
0
파일: web.py 프로젝트: Arealiber/TestAuto
def environment_mange():
    return app.send_static_file('environment.html')
예제 #3
0
def sitemap_i1():
    return app.send_static_file('sitemap_r1.xml')
예제 #4
0
def catch_all(path):
    return app.send_static_file("index.html")
예제 #5
0
def GSC_file():
  return app.send_static_file('google137e022a821ce1e1.html')
예제 #6
0
파일: base.py 프로젝트: tclh123/kido
def ico():
    #fi = open(server_dir + 'favicon.ico', "rb")
    #return fi.read()
    #return send_from_directory(os.path.join(app.root_path, 'static'), 'favicon.ico', mimetype='image/vnd.microsoft.icon')
    return app.send_static_file("favicon.ico")
예제 #7
0
파일: web.py 프로젝트: Arealiber/TestAuto
def parameter_detail_page(parameter_id):
    return app.send_static_file('parameter_detail.html')
예제 #8
0
파일: web.py 프로젝트: Arealiber/TestAuto
def batch_run_log_detail(run_log_id, page_num):
    return app.send_static_file('batch_run_log_detail.html')
예제 #9
0
파일: web.py 프로젝트: Arealiber/TestAuto
def logout():
    if cur_user():
        del session['user_id']
        del session['real_name']
        del session['timestamp']
    return app.send_static_file('logout.html')
예제 #10
0
파일: web.py 프로젝트: Arealiber/TestAuto
def parameter_page(page_num):
    return app.send_static_file('parameter.html')
예제 #11
0
파일: web.py 프로젝트: Arealiber/TestAuto
def email_manage():
    return app.send_static_file('email_manage.html')
예제 #12
0
파일: web.py 프로젝트: Arealiber/TestAuto
def use_case_report():
    return app.send_static_file('report.html')
예제 #13
0
파일: web.py 프로젝트: Arealiber/TestAuto
def environment_detail():
    return app.send_static_file('environment_detail.html')
예제 #14
0
파일: web.py 프로젝트: Arealiber/TestAuto
def batch_run_log_page(page_num):
    return app.send_static_file('batch_run_log.html')
예제 #15
0
파일: web.py 프로젝트: Arealiber/TestAuto
def interface_page(page_num):
    return app.send_static_file('interface.html')
예제 #16
0
파일: web.py 프로젝트: Arealiber/TestAuto
def use_case_run_log_detail(run_log_id):
    return app.send_static_file('use_case_run_log_detail.html')
예제 #17
0
파일: web.py 프로젝트: Arealiber/TestAuto
def interface_detail_page(interface_id):
    return app.send_static_file('interface_detail.html')
예제 #18
0
def home():
    return app.send_static_file('index.html')
예제 #19
0
파일: web.py 프로젝트: Arealiber/TestAuto
def use_case_page(page_num):
    return app.send_static_file('use_case_detail.html')
예제 #20
0
파일: views.py 프로젝트: SnowyApp/Snowy
import json

from application import app, es
from application.models import User, Token, Concept
from flask import request, jsonify, abort, g
from functools import wraps
from itsdangerous import (TimedJSONWebSignatureSerializer as Serializer,
                          BadSignature, SignatureExpired)

app.add_url_rule('/', 'root', lambda: app.send_static_file('index.html'))


def verify_auth_token(token):
    """
    Verifies that the token is valid for a user.
    """
    s = Serializer(app.config['SECRET_KEY'])
    data = None
    try:
        data = s.loads(token)
    except SignatureExpired:
        return None
    except BadSignature:
        return None
    token = Token(token, data['email'])
    if token.is_valid_token():
        return token.retrieve_user()
    else:
        return None

예제 #21
0
파일: web.py 프로젝트: Arealiber/TestAuto
def use_case_detail_page(use_case_id):
    return app.send_static_file('use_case_detail.html')
예제 #22
0
def sitemap():
    return app.send_static_file('sitemap.xml')
예제 #23
0
파일: web.py 프로젝트: Arealiber/TestAuto
def batch_page(page_num):
    return app.send_static_file('batch.html')
예제 #24
0
def GSC_file():
    return app.send_static_file('google137e022a821ce1e1.html')
예제 #25
0
파일: web.py 프로젝트: Arealiber/TestAuto
def batch_detail_page(batch_id):
    return app.send_static_file('batch_detail.html')
예제 #26
0
def index():
    return app.send_static_file("index.html")
예제 #27
0
파일: web.py 프로젝트: Arealiber/TestAuto
def use_case_run_log_page(page_num):
    return app.send_static_file('use_case_run_log.html')
예제 #28
0
def sendoutput():
	print "eee"
	return app.send_static_file('output.csv')
예제 #29
0
파일: base.py 프로젝트: Roxasora/kido
def ico():
    #fi = open(server_dir + 'favicon.ico', "rb")
    #return fi.read()
    #return send_from_directory(os.path.join(app.root_path, 'static'), 'favicon.ico', mimetype='image/vnd.microsoft.icon')
    return app.send_static_file("favicon.ico")