catch GET parameter

This commit is contained in:
Seth Schoen
2012-11-15 14:33:15 -08:00
parent aed32981f1
commit f3935fac9e
+3 -6
View File
@@ -3,18 +3,15 @@
import web, redis
urls = (
'.*', 'payment'
'/(.*)', 'payment'
)
r = redis.Redis()
class payment(object):
def GET(self):
def GET(self, stuff):
web.header("Content-type", "text/html")
s = ""
try: s = web.data()
except: pass
return "Hello there! " + s
return "Hello there! " + stuff
if __name__ == "__main__":
app = web.application(urls, globals())