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

Make req.path_info writable.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.7
    • 3.2.7
    • core
    • None

    Description

      In current version of mod_python req.filename is writable, but
      req.path_info isn't.

      If req.path_info were writable it would more easily allow a middleware
      stack to be implemented in mod_python. This is because a middleware
      component could modify req.path_info as necessary as the path info is
      progressively processed. This would be better than a middleware
      component having to create a parallel request attribute just for this
      purpose as by being able to change req.path_info existing handlers such
      as mod_python.publisher which already look at req.filename and
      req.path_info could still be utilised in various ways within the
      middleware stack. Same for any handlers which third parties may have
      developed. Thus would eliminate the need to copy existing handlers and
      modify them to get them to work, a middleware component would simply
      need to setup req.filename and req.path_info as appropriate and the
      existing handlers would work unmodified.

      Attachments

        1. requestobject.c.diff
          2 kB
          Graham Phillip Dumpleton

        Activity

          People

            Unassigned Unassigned
            grahamd Graham Phillip Dumpleton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: