from webob import Request, Response
class WebApp(object):
def __call__(self, environ, start_response):
# capture the request coming from the browser
req = Request(environ)
print("**** Serving request ****")
# Looks for the variable (parameter) yes_no in the request
x = req.params.get('yes_no')
print(x)
if x == None:
html = """
Hello, I am the Raspberry Pi!
Do you like my website?