11-11-05 07:46 AM
[ http://issues.apache.org/jira/brows...HON-89?page=all ]
Graham Dumpleton updated MODPYTHON-89:
--------------------------------------
Description:
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 "IfD
efine" directive available in Apache configuration files.
The availability of this option would allow special debugging code to consul
t whether Apache is run in one process mode and thus determine whether the d
ebugging code should be able to be run in the first place. Eg. pdb support.
was:
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.ap_exists_config_define("ONE_PROCESS"): ... do something
Exposing of this function would provide equivalent functionality to the "IfD
efine" directive available in Apache configuration files.
The availability of this option would allow special debugging code to consul
t whether Apache is run in one process mode and thus determine whether the d
ebugging code should be able to be run in the first place. Eg. pdb support.
> Add new apache.exists_config_define() function.
> -----------------------------------------------
>
> Key: MODPYTHON-89
> URL: http://issues.apache.org/jira/browse/MODPYTHON-89
> Project: mod_python
> Type: Improvement
> Components: core
> Versions: 3.3
> Reporter: Graham Dumpleton
> Priority: Minor
>
> 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 optio
ns were used. For example, if the '-DONE_PROCESS' command line option was us
ed in explicitly starting "httpd".
> if apache.exists_config_define("ONE_PROCESS"): ... do something
> Exposing of this function would provide equivalent functionality to the "I
fDefine" directive available in Apache configuration files.
> The availability of this option would allow special debugging code to consult whet
her 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.
[ Post a follow-up to this message ]
|