Include statements with python scripting

Fredrik Lundh fredrik at pythonware.com
Fri Jul 30 17:18:02 EDT 1999


Sean Robertson <seanr at infi.net> wrote:
> How do you do an include statement in python?  I know that in Cold Fusion it
> would be "<cfinclude template="blue_header_noad.html">" and in an shtml file
> it would be "#include http://data.pilotonline.com/connect2/blue_header.html"
> but I need to know how this is done in Python scripting.  This script is
> being embedded in a template for a classifieds page.  I have something like
> this so far:
> 
> <html><head><title><!--#var name--> Search Results</title></head>
> 
> <!--#if mainclass == Employment:-->
>     <!--#include http://data.pilotonline.com/connect2/blue_header.html-->
> <!--#else:-->
>     <!--#include http://data.pilotonline.com/connect2/default_header.html-->
> 
> <font size="+1">Main classification: <!--#var mainclass--> .....

if I'm not mistaken, that's zope DHTML code.  it's
definitely not an ordinary Python script...

it probably works better if you send zope questions 
to one of the zope mailing lists:

    http://www.zope.org/Community/

</F>





More information about the Python-list mailing list