[ http://issues.apache.org/jira/browse/MODPYTHON-72?page=all ]
Graham Dumpleton updated MODPYTHON-72: -------------------------------------- Attachment: publisher.txt Jim, can you give this patch I have attached a go. What I have done is incorporated the equivalent publisher code I had from Vampire where I already worked out fixes for all the original publisher problems. This code also handles correctly the cases for where the new publisher code has introduced problems as described above and elsewhere. The code is well commented and I believe it is perhaps a bit easier to follow anyway. I haven't checked it against the test suite after having integrated it, just a few cases covering the problematic areas where current problems are, so if you can run the test suite other it, would be appreciated. We can then see where we go with this, whether my alternative is going to be acceptable or whether it is going to be necessary to try and make what was there work instead. > mod_python.publisher no longer pays attention to result of > req.get_addhandler_exts() > ------------------------------------------------------------------------------------ > > Key: MODPYTHON-72 > URL: http://issues.apache.org/jira/browse/MODPYTHON-72 > Project: mod_python > Type: Bug > Versions: 3.2.0 > Reporter: Nicolas Lehuen > Assignee: Nicolas Lehuen > Attachments: publisher.txt > > Says Graham : > A final issue, is that latest mod_python.publisher no longer pays > attention to result of req.get_addhandler_exts(). This means that where > you used to be able to say: > # .htaccess > AddHandler mod_python .html > PythonHandler mod_python.publisher > # page.py > def index(): > return "<html></body><p>XXX</p></body></html>" > with URL of "/page.html", this no longer appears to work for me. In > short it appears that one can only use ".py" as an extension or no > extension at all. Defining another extension to AddHandler or > PythonHandler seems to have no effect. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira