Late bugs

2007-08-24T13:09:12Z
Dave Pawson.  link
Home

Late bugs

Late bugs

After a nudge from one of my readers, I noted that the Python I wrote some two years ago is buggy. The intention was that a second post on the same day would be (e.g. for today) 0708241.xml for the atom entry. That was OK for the XML generated, but wrong in the alt link that atom uses. I hadn't extended the logic into that code. I've now written a separate routine to generate the filename, and used that throughout. Code complete? No. Insufficiently well tested? Yes. Though I did test the new code prior to using it, so perhaps a little TDD.

I guess this is one of those cases where only Schematron is good enough?

Keywords: python

Comments (View)

Return to main index