[mod_python] Mailman HTML templates to include PSP

Anastasios Hatzis ah at hatzis.de
Thu Nov 29 11:14:46 EST 2007


On Wednesday 28 November 2007, Graham Dumpleton wrote:
> Use Apache SSI:
>
>   http://httpd.apache.org/docs/2.0/howto/ssi.html
>   http://www.modpython.org/live/current/doc-html/ssi.html
>
> You could do it in two ways. First is to include PSP chunk output into
> static HTML files using SSI. Second is to ditch PSP and use Python
> code snippets direct in the static HTML file and produce equivalent
> HTML on the fly from there.

Graham, 
many thanks for your advice. OK, so I will try with the first way, SSI to 
include PSP chunk output.

>
> You will need mod_python 3.3 for the latter though. You don't specify
> which version of mod_python you are using.

Sorry, this is Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4

Thanks again.

Best regards,
Anastasios

>
> Graham
>
> On 28/11/2007, Anastasios Hatzis <ah at hatzis.de> wrote:
> > Hi!
> >
> > I run two web-sites on Apache and mod_python (Debiab 4 current stable). I
> > would like to integrate the PSP chunks of these websites into the HTML
> > templates of Mailman 2.1.9 which I use for all lists on these sites.
> >
> > The patterns on all Web-pages of the sites is like this:
> >
> > http://www.foo.org/index.html:
> >
> > <%@ include file="head.psp"%>
> >   <p>
> >     Some content
> >   </p>
> > <%@ include file="sidebar.psp"%>
> > <%@ include file="foot.psp"%>
> >
> > head.psp contains the top-level navigation which changes rather often.
> > sidebar.psp is context-sensitive for each page.
> > foot.psp is on all pages the same and changes are rare.
> >
> > Each site has multiple lists. The mailman pages are in
> > http://lists.foo.org/cgi-bin/*
> >
> > The same is for www.bar.org.
> >
> > I would like to integrate the corresponding PSP files into the mailman
> > HTML templates. For now I have copied and pasted the static HTML rendered
> > by the PSP files into the HTML templates of the mailman lists.
> >
> > Since I don't want to copy & paste into the mailman templates each time
> > the PSP chunks do change I would prefer a dynamic approach that works
> > like the rest of my sites.
> >
> > Any idea how I can include the PSP chunks into the mailman HTML templates
> > - or an alternative with the same effect?
> >
> > Thank you.
> >
> > Best regards,
> > Anastasios
> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20071129/15bef2a6/attachment.bin


More information about the Mod_python mailing list