Issue Details (XML | Word | Printable)

Key: MODPYTHON-104
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Graham Dumpleton
Reporter: Graham Dumpleton
Votes: 1
Watchers: 0
Operations

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

Allow Python code callouts with mod_include (SSI).

Created: 23/Dec/05 09:23 AM   Updated: 05/Apr/07 11:11 AM
Return to search
Component/s: core
Affects Version/s: None
Fix Version/s: 3.3.1

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works grahamd_20060126_1_mod_include.diff 2006-01-26 02:44 PM Graham Dumpleton 8 kB
File Licensed for inclusion in ASF works grahamd_20060226_MP104_1.diff 2006-02-26 02:05 PM Graham Dumpleton 11 kB
Text File Licensed for inclusion in ASF works MP104_20060317_jgallacher_1.diff 2006-03-18 01:39 AM Jim Gallacher 0.5 kB

Resolution Date: 27/Oct/06 08:29 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.