mrj0/staticgenerator — pull request #2 by mdippery (2011-11-29 23:15:48+00:00)
Title: Fix crash when generating static pages

I fixed another minor bug. This one was upstream. I sent a pull request to luckythetourist, but I'm not sure how often he updates his repo, so you may be interested, too. Here're the details I sent him:

> In order to publish static pages, **staticgenerator** makes a fake request (using its `DummyHandler`) to the generated page. It doesn't provide a `REMOTE_ADDR` or a `request.REQUEST` field. This can cause middleware that is expecting such fields to crash, which makes static page generation fail. These fixes solve that problem.