Issue Details (XML | Word | Printable)

Key: MODPYTHON-89
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Nicolas Lehuen
Reporter: Graham Dumpleton
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
mod_python

Add new apache.exists_config_define() function.

Created: 11/Nov/05 02:15 PM   Updated: 05/Mar/06 02:50 PM
Return to search
Component/s: core
Affects Version/s: 3.3.x
Fix Version/s: 3.2.7

Time Tracking:
Not Specified

Resolution Date: 13/Nov/05 03:11 AM


 Description  « Hide
Add new function:

  apache.exists_config_define()

The intent is that this function would wrap the underlying Apache function:

  ap_exists_config_define()

This function allows one to determine if certain Apache command line options were used. For example, if the '-DONE_PROCESS' command line option was used in explicitly starting "httpd".

  if apache.exists_config_define("ONE_PROCESS"): ... do something

Exposing of this function would provide equivalent functionality to the "IfDefine" directive available in Apache configuration files.

The availability of this option would allow special debugging code to consult whether Apache is run in one process mode and thus determine whether the debugging code should be able to be run in the first place. Eg. pdb support.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Nicolas Lehuen added a comment - 13/Nov/05 03:11 AM
I've added the function and a test case.

Nicolas Lehuen added a comment - 13/Nov/05 03:22 AM
Added some documentation to modpython4.tex.