On 10/18/07, Dan Connolly <[EMAIL PROTECTED]> wrote: > Yeah... looks like perl code. ;-) > > OK... as an exercise in understanding the code, I > made the main body into a function, factored > out 3 parts, and added doctests. Enjoy.
Thanks! Checked in. > While I was at it, I think I fixed a bug: in > the case of "Not a valid URI Template", I think > your code gives an HTTP 200 and then prints > an HTTP 400 status message in the body. Yup, that was a bug. > You might add a clue about how to satisfy 'import tpg' > in template_parser.py; tpg isn't in apt nor the CheeseShop, > so I had to hunt for it a bit. > http://christophe.delord.free.fr/tpg/index.html Now listed under prerequisites on the project home page. Thanks! -joe -- Joe Gregorio http://bitworking.org
