Hi, we have been started a project called wepy! it is a modpython based PHP and Python mix. Here are the some samples about wepy: --------------- simple hello world script print "hello world" --------------- simple redirection script HEADERS['Location'] = 'http://www.wepy.org/' --------------- simple image mime type sample HEADERS['Content-Type'] = 'image/png' import sys sys.stdout.write(open('penguin.png', 'rb').read()) -------------------------------------------------------- COOKIES, HEADERS, GET, POST, SERVER, CONFIG, REQUEST these are the global variables when you call website/index.py?a=5&a=6&a=12 and print GET['a'] the output ['5', '6', '12'] for download: svn co https://svn.gaplan.org/gaplan/trunk/wepy/ please try and send your valuable comments Regards |
