[mod_python] psp include syntax

Joshua Ginsberg listspam at flowtheory.net
Fri Feb 24 10:01:51 EST 2006


(whoops -- forgot to CC the list... :-/ )

Howdy Emlyn --

While I'm sure it's a perfectly valid technical term I'm unaware of
since I don't ever work on Windows systems, could you provide a little
more insight to us *nix folk what "barfs" means? :-)

-jag

On Fri, 2006-02-24 at 13:51 +0000, Emlyn Jones wrote:
> Hello,
> I've written a web app which uses mod_python on Apache. I now need to
> make it work using Python/ASP and IIS (using Mr Hammonds excellent
> Python Win32 package) so I've wrapped everything up into a
> ServerObject hiding the underlying implementation and making my pages
> "pure" python. The only remaining problem is including other files. As
> you know the include directive for mod_python is this:
> 
> <%@ include file="scriptheader.asp"%>
> 
> Where as for IIS/ASP it is this:
> 
> <!--#include file ="scriptheader.asp"-->
> 
> IIS barfs at the mod_python syntax and mod_python ignores the IIS
> syntax. Other than hacking the mod_python source code, can anybody
> think of a nifty way to make the includes work on either platform?
> (I realise this may be an impossible dream, but you never know).
> 
> Cheers,
> Emlyn.
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python



More information about the Mod_python mailing list