Work started: (MODPYTHON-206) The attribute
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 > Work started: (MODPYTHON-206) The attribute




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

    Work started: (MODPYTHON-206) The attribute  
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...ON-206?page=all ]

Work on MODPYTHON-206 started by Graham Dumpleton.

> The attribute req.used_path_info should be writable.
> ----------------------------------------------------
>
>                 Key: MODPYTHON-206
>                 URL: http://issues.apache.org/jira/browse/MODPYTHON-206
>             Project: mod_python
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.3
>            Reporter: Graham Dumpleton
>         Assigned To: Graham Dumpleton
>             Fix For: 3.3
>
>
> At present, req.used_path_info is read only. This should instead be modifi
able as well.
> This attribute gets set when you use the Apache AcceptPathInfo directive. 
You might use it for example as:
> <Files "mypaths.shtml">
> Options +Includes
> SetOutputFilter INCLUDES
> AcceptPathInfo On
> </Files>
> In this case use of AcceptPathInfo would be needed as the default-handler 
for serving up static files prohibits additional path info by default. Thus,
 if you want SSI files to be able to make use of additional path info, you h
ave to enable it.
> In mod_python 3.3, the ability to register filters dynamically just for th
e current request means that SSI can be set up from within a fixuphandler us
ing:
> def fixuphandler(req):
>     if os.path.basename(req.filename) == 'mypaths.shtml':
>         req.add_output_filter('INCLUDES')
>     return apache.OK
> Without req.used_path_info being modifiable though, one can't do the equivalent to
 AcceptPathInfo from within the handler. Thus, req.used_path_info should be modifiab
le. The values this attribute needs to be set to are already specified in mod_python
.ap
ache
> and thus only needs one line change to requestobject.c because value is an
 integer. The handler could then be written as:
> def fixuphandler(req):
>     if os.path.basename(req.filename) == 'mypaths.shtml':
>         req.add_output_filter('INCLUDES')
>         req.used_path_info = apache.AP_REQ_ACCEPT_PATH_INFO
>     return apache.OK






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:57 PM.      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