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

Allow Python code callouts with mod_include (SSI).

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.1
    • Component/s: core
    • Labels:
      None

      Description

      The mod_include module supporting server side includes (SSI), provides a means of registering new element tags which trigger callouts to other code in separate Apache modules. This is used for example in mod_perl to allow Perl language code to be used with server side includes:

      <!--#perl sub="MySSI::remote_host" -->

      <!--#perl arg="Hello" arg="SSI" arg="World"
      sub="sub

      { my($r, @args) = @_; print qq(@args); }

      "
      -->

      An equivalent feature for Python was previously asked about on the mailing list back in 2004:

      http://www.modpython.org/pipermail/mod_python/2004-January/014832.html

      Since it seems entirely reasonable that such integration of mod_python and mod_include would be possible, thought it would be good to log it as a possible new feature.

      Because of SSI's support for basic conditionals, includes and other callout mechanisms, would be a good quick and dirty way of doing templating without having to resort to PSP, or other high level templating systems.

        Attachments

        1. grahamd_20060126_1_mod_include.diff
          8 kB
          Graham Dumpleton
        2. grahamd_20060226_MP104_1.diff
          11 kB
          Graham Dumpleton
        3. MP104_20060317_jgallacher_1.diff
          0.5 kB
          Jim Gallacher

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: