|
Julien Cigar
jcigar at ulb.ac.be
Tue Jun 6 09:19:23 EDT 2006
I found the problem.
The problem was that I have to put a relative path in place of an
absolute path ...
Another question about the include directive, why can't I do:
mytemplate.run({'body' : 'invasive/list.psp'})
and in my template file :
<%@ include file="<%= body %>"%>
This doesn't work .. any idea ?
Jim Gallacher wrote:
> Julien Cigar wrote:
>> Hello,
>>
>> Any idea what could make Apache2 segfaulting when I have an: <%@
>> include file="/foo/bar/views/lol.html" %> in a PSP template ?
>>
>> [Tue Jun 06 14:21:35 2006] [notice] child pid 28455 exit signal
>> Segmentation fault (11)
>>
>> If I remove the <%@ include %> statement, everything work fine.
>>
>> (mod_python 3.2.8, apache 2.0.55)
>
> Is lol.html just html, or does it contain python or psp code as well?
>
> Does lol.html parse correctly on its own? You can test it in a command
> line interpreter:
>
> from mod_python import _psp
>
> code = _psp.parse('lol.html')
> print code
>
> Jim
>
--
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
office: jcigar at ulb.ac.be
home: mage at mordor.ath.cx
|