Commented: (MODPYTHON-204) Implement urlobject to be
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Commented: (MODPYTHON-204) Implement urlobject to be




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:21 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register