Apache Mod-Python - Commented: (MODPYTHON-204) Implement urlobject to be

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > November 2006 > Commented: (MODPYTHON-204) Implement urlobject to be





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Commented: (MODPYTHON-204) Implement urlobject to be
Graham Dumpleton (JIRA)

2006-11-19, 1:13 am

[ http://issues.apache.org/jira/brows...action_12451103 ]

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

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


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com