You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by "Jim Gallacher (JIRA)" <ji...@apache.org> on 2006/03/17 18:40:00 UTC

[jira] Updated: (MODPYTHON-104) Allow Python code callouts with mod_include (SSI).

     [ http://issues.apache.org/jira/browse/MODPYTHON-104?page=all ]

Jim Gallacher updated MODPYTHON-104:
------------------------------------

    Attachment: MP104_20060317_jgallacher_1.diff

Fixes SSI_CREATE_ERROR_BUCKET problem for apache 2.0

> Allow Python code callouts with mod_include (SSI).
> --------------------------------------------------
>
>          Key: MODPYTHON-104
>          URL: http://issues.apache.org/jira/browse/MODPYTHON-104
>      Project: mod_python
>         Type: New Feature
>   Components: core
>     Reporter: Graham Dumpleton
>     Assignee: Graham Dumpleton
>      Fix For: 3.3
>  Attachments: MP104_20060317_jgallacher_1.diff, grahamd_20060126_1_mod_include.diff, grahamd_20060226_MP104_1.diff
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Updated: (MODPYTHON-104) Allow Python code callouts with mod_include (SSI).

Posted by Graham Dumpleton <gr...@dscpl.com.au>.
Scratches head.

And here I was being very careful making sure I compiled against both  
Apache 2.0
and Apache 2.2 to make sure I didn't stuff anything up. For some  
reason, on
Mac OS X it was not complaining at all. I can only imagine it does  
runtime checking
and binding of the name and doesn't complain at link time sufficient  
enough to
cause an actual error that stops compilation.

I'll have to be very careful of this in the future.

I'll fix it later today. If you cant wait, feel free to commit fix.

Graham

On 18/03/2006, at 4:40 AM, Jim Gallacher (JIRA) wrote:

>      [ http://issues.apache.org/jira/browse/MODPYTHON-104?page=all ]
>
> Jim Gallacher updated MODPYTHON-104:
> ------------------------------------
>
>     Attachment: MP104_20060317_jgallacher_1.diff
>
> Fixes SSI_CREATE_ERROR_BUCKET problem for apache 2.0
>
>> Allow Python code callouts with mod_include (SSI).
>> --------------------------------------------------
>>
>>          Key: MODPYTHON-104
>>          URL: http://issues.apache.org/jira/browse/MODPYTHON-104
>>      Project: mod_python
>>         Type: New Feature
>>   Components: core
>>     Reporter: Graham Dumpleton
>>     Assignee: Graham Dumpleton
>>      Fix For: 3.3
>>  Attachments: MP104_20060317_jgallacher_1.diff,  
>> grahamd_20060126_1_mod_include.diff, grahamd_20060226_MP104_1.diff
>>
>> 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.
>
> -- 
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the  
> administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>    http://www.atlassian.com/software/jira