1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

rename handlers

pep8 cleanup for all packages
remove obsolte statictextview
This commit is contained in:
Ilya Kreymer 2014-03-23 12:59:21 -07:00
parent ac0bf5a415
commit bcaacaf642
6 changed files with 3 additions and 13 deletions

View File

@ -13,6 +13,7 @@ application = init_app(create_cdx_server_app,
load_yaml=True,
config_file=DEFAULT_CONFIG)
def main():
start_wsgi_server(application, 'CDX Server')

View File

@ -6,6 +6,7 @@ from pywb.core.pywb_init import create_wb_router
#=================================================================
application = init_app(create_wb_router, load_yaml=True)
def main():
start_wsgi_server(application, 'Wayback')

View File

@ -16,7 +16,7 @@ from query_handler import QueryHandler
from handlers import WBHandler
from handlers import StaticHandler
from handlers import DebugEchoHandler, DebugEchoEnvHandler
from cdx_handler import CDXAPIHandler
from cdx_api_handler import CDXAPIHandler
import os

View File

@ -9,18 +9,6 @@ from itertools import imap
from jinja2 import Environment, FileSystemLoader, PackageLoader
#=================================================================
class StaticTextView:
def __init__(self, text):
self.text = text
def render_to_string(self, **kwargs):
return self.text
def render_response(self, **kwargs):
return WbResponse.text_stream(self.text)
#=================================================================
class J2TemplateView:
def __init__(self, filename):