review/web_ui.py @ 7c9d165e0cd1 webui

Bundle webpy with the extension.
author Steve Losh <steve@stevelosh.com>
date Tue, 13 Oct 2009 18:34:55 -0400
parents (none)
children 96a4cc60e57d
"""The review extension's web UI."""

import sys, os

top_path = os.path.split(os.path.split(os.path.realpath(__file__))[0])[0]
bundled_path = os.path.join(top_path, 'bundled')
webpy_path = os.path.join(bundled_path, 'webpy')

sys.path.insert(0, webpy_path)
import web


urls = (
    '/', 'index'
)

class index:
    def GET(self):
        return "Hello, world!"

app = web.application(urls, globals())

if __name__ == "__main__":
    app.run()