1. Francois Dion
  2. pyptug

Source

pyptug / webpy / helloworld / hw4.py

""" code.py """
import web
from expose import get, post

web.app = web.application()

@get('/')
def hello(name='world'):
        return "Hello, " + name

@post('/')
def changeName():
        i = web.input(name='world')
        return "You posted your name! Hello, " + i.name

if __name__ == '__main__':
        web.app.run()