11-19-06 06:13 AM
[ http://issues.apache.org/jira/brows...245
1103 ]
Graham Dumpleton commented on MODPYTHON-204:
--------------------------------------------
When this is done, can expose Apache Runtime library methods:
apr_uri_unparse()
apr_uri_parse()
and possibly others. The Python equivalents would return or accept the urlob
ject.
See:
srclib/apr-util/include/apr_uri.h
in Apache source for purpose of these functions and what others could be exp
osed for use in mod_python.
> Implement urlobject to be returned by req.parsed_uri
> ----------------------------------------------------
>
> Key: MODPYTHON-204
> URL: http://issues.apache.org/jira/browse/MODPYTHON-204
> Project: mod_python
> Issue Type: Improvement
> Components: core
> Affects Versions: 3.3
> Reporter: Graham Dumpleton
>
> In mod_python 3.3, a finfoobject was introduced and returned when req.finf
o was accessed. This provided backward compatibility so that tuple style acc
ess still worked, but prefered means of accessing data now is by attribute l
ookup.
> In a similar way, a urlobject needs to be introduced so that parts of pars
ed 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]
[ Post a follow-up to this message ]
|