コード例 #1
0
ファイル: test_server.py プロジェクト: ownport/sitemap-parser
def get_sitemap_xml_gz():
    return bottle.static_file('sitemap_index.xml', root=STATIC_FILES_DIR, mimetype="application/xml")
コード例 #2
0
def static(path):
	logging.debug("@bottle.route('/static/<path:path>')")
	logging.info(path)
	return bottle.static_file(path,root=STATIC_ROOT)
コード例 #3
0
ファイル: test_server.py プロジェクト: ownport/sitemap-parser
def get_sitemap_xml():
    return bottle.static_file('sitemap.xml', root=STATIC_FILES_DIR, mimetype="text/xml; charset=utf-8")
コード例 #4
0
ファイル: test_server.py プロジェクト: ownport/sitemap-parser
def get_sitemap_xml_gz():
    return bottle.static_file('sitemap2.xml.gz', root=STATIC_FILES_DIR, mimetype="application/x-gzip")
コード例 #5
0
ファイル: test_server.py プロジェクト: ownport/sitemap-parser
def get_robotstxt():
    return bottle.static_file('favicon.ico', root=STATIC_FILES_DIR)
コード例 #6
0
ファイル: test_server.py プロジェクト: ownport/sitemap-parser
def get_robotstxt():
    return bottle.static_file('robots.txt', root=STATIC_FILES_DIR)
コード例 #7
0
def get_sitemap_xml_gz():
    return bottle.static_file('sitemap2.xml.gz', root=STATIC_FILES_DIR, mimetype="application/x-gzip")
コード例 #8
0
def get_sitemap_xml_gz():
    return bottle.static_file('sitemap_index.xml', root=STATIC_FILES_DIR, mimetype="application/xml")
コード例 #9
0
def get_sitemap_xml():
    return bottle.static_file('sitemap.xml', root=STATIC_FILES_DIR, mimetype="text/xml; charset=utf-8")
コード例 #10
0
def get_robotstxt():
    return bottle.static_file('robots.txt', root=STATIC_FILES_DIR)
コード例 #11
0
def get_robotstxt():
    return bottle.static_file('favicon.ico', root=STATIC_FILES_DIR)
コード例 #12
0
ファイル: pywebase.py プロジェクト: ownport/pywebase
def handle_static(filepath):
    return bottle.static_file(filepath, root=settings.STATIC_PATH)
コード例 #13
0
ファイル: pywebase.py プロジェクト: ownport/pywebase
def handle_favicon():
    return bottle.static_file('images/favicon.ico', root=settings.STATIC_PATH)