Created: (MODPYTHON-103) Implement req.add_output_filter().
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 > Created: (MODPYTHON-103) Implement req.add_output_filter().




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

    Created: (MODPYTHON-103) Implement req.add_output_filter().  
Graham Dumpleton (JIRA)


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


 
12-23-05 01:46 AM

Implement req.add_output_filter().
----------------------------------

Key: MODPYTHON-103
URL: http://issues.apache.org/jira/browse/MODPYTHON-103
Project: mod_python
Type: New Feature
Components: core
Reporter: Graham Dumpleton


Add new member function to request object called "add_output_filter()". This
 would be a wrapper around the function "ap_add_output_filter()" and allow p
reviously defined filters to be attached to the current request such that ou
tput can be filtered throug
h them. For example:

req.add_output_filter("INCLUDES")

It would probably be necessary for any such call to be done prior to the fir
st output being generated from the request handler.

In addition to this member function, it may be necessary to also provide ano
ther member function called something like "req.add_python_output_filter()".
 This would be called something like:

req.add_python_output_filter("module_name::filter_name",path)

Ie., like "req.add_handler()" but no first argument for phase.

This method would allow a specific Python filter handler function to be spec
ified. This would be equivalent to using the PythonOutputFilter directive to
 first name a mod_python based filter handler function and then adding it as
 an output filter.

# Main Apache config.

PythonOutputFilter module_name::filter_name MYFILTER

# Handler code.

req.add_output_filter("MYFILTER")

Note that the PythonOutputFilter directive can only be used in the main Apac
he configuration file, it cannot be used in a .htaccess file. Whether it cou
ld be made to work in a .htaccess file in some way needs to be investigated.
 In mod_perl their equivlen
t seems to allow it.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:29 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