Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-72

mod_python.publisher no longer pays attention to result of req.get_addhandler_exts()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.7
    • 3.2.7
    • None
    • None

    Description

      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:

      1. .htaccess

      AddHandler mod_python .html
      PythonHandler mod_python.publisher

      1. 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.

      Attachments

        1. publisher.txt
          4 kB
          Graham Phillip Dumpleton

        Activity

          People

            Unassigned Unassigned
            nlehuen Nicolas Lehuen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: