[mod_python] Absolute include?

. remember.pol at gmail.com
Sat Aug 23 07:42:12 EDT 2008


<%@ include file = "/var/www/header.psp" %>

^-- produces a blank page.

Although...

<%@ include file = "../header.psp" %>

works OK.

I know I can do:

<% PSP( req, '/var/www/header.psp' ).run() %>

but this produces a different issue, in the manner of which if I
create a python syntax error after that header include... the header
is included then apache writes a full 200-OK error HTML page right
into the rest of the page, after the existing <HTML> tag in header.psp
which then produces two XML parsing errors.

Any fix for this absolute-path blank-page issue?

Also, why are double quotes required to specify the include file
whereas single quotes won't suffice?


More information about the Mod_python mailing list