60-LOC Web Framework
September 4, 2006
Joe Gregorio builds a Python Web framework in 60 lines of code. One thing I particular like is the use of Selector:
import selector
import view
urls = selector.Selector()
urls.add('/blog/', GET=view.list)
urls.add('/blog/{id}/', GET=view.member_get)
urls.add('/blog/;create_form', POST=view.create, GET=view.list)
urls.add('/blog/{id}/;edit_form', GET=view.member_get, POST=view.member_update)
About
This page contains a single entry from Stefan Tilkov's Random Stuff posted on September 4, 2006 10:21 AM. The previous post in this blog was Enterprise-class Software vs. Software that Runs the Enterprise. The next post in this blog is More Praise for Glassfish. Many more can be found on the main index page or by looking through the archives.
