
|
If you were logged in you would be able to see more operations.
|
|
|
|
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]
|
|
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]
|
Show » |
|
apr_uri_unparse()
apr_uri_parse()
and possibly others. The Python equivalents would return or accept the urlobject.
See:
srclib/apr-util/include/apr_uri.h
in Apache source for purpose of these functions and what others could be exposed for use in mod_python.