Finally today Adam found a case where it was actually breaking the
testability of a Facebook application. For some reason the request
wasn't actually sending a new request to the forward url, probably due
to some bad XHR POST code.
In order to fix issues like this going forward I added support for
adding arbitrary conditions that are checked before a request is
returned a forward. The API is pretty simple, you just add a function
that takes the environ dictionary for the request and returns True or
False (True if the request should be forwarded).
Here is the example that fixes the particular issue that Adam found;
import windmill
windmill.server.add_forward_condition(lambda x, y: not
y['reconstructed_url'].startswith('http://fb.community.slide.com/superpoke/sp_submit_mass/'))
-Mikeal