Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-89

Add new apache.exists_config_define() function.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.x
    • Fix Version/s: 3.2.7
    • Component/s: core
    • Labels:
      None

      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 "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.

        Attachments

          Activity

            People

            • Assignee:
              nlehuen Nicolas Lehuen
              Reporter:
              grahamd Graham Dumpleton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: