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

Implement urlobject to be returned by req.parsed_uri

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.x
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      In mod_python 3.3, a finfoobject was introduced and returned when req.finfo was accessed. This provided backward compatibility so that tuple style access still worked, but prefered means of accessing data now is by attribute lookup.

      In a similar way, a urlobject needs to be introduced so that parts of parsed uri information are accessed by attribute lookup rather than tuple style access. For example:

      req.parsed_uri.path

      instead of:

      req.parsed_uri[apache.URI_PATH]

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: