On Tue, 20 Dec 2005, Graham Dumpleton wrote:
Grisha, do you remember why the following warning is present in directive_PythonInputFilter() and directive_PythonOutputFilter() of "mod_python.c". /* register the filter NOTE - this only works so long as the directive is only allowed in the main config. For .htaccess we would have to make sure not to duplicate this */ Having input/output filters be able to be specified in .htaccess must have been considered, but there must have been some issue with it that prevented it being done at the time.
I think it was because if specified in .htaccess, that code would be executed for every request and something would need to be done to make sure ap_register_input_filter() is only called once. I don't remember the intricate details at this point, and it's possible that this warning is unnecessary either because I didn't understand something or perhaps the way Apache works has changed. In any event, I'd do some careful investigating before disregarding that NOTE :)
Grisha