Py_Apache Vs. mod_python

Cary O'Brien cobrien at Radix.Net
Mon Jul 10 09:00:00 EDT 2000


Somewhat off target...

In article <8kai0a$7g6$1 at nnrp1.deja.com>,  <johnvert at my-deja.com> wrote:

>Which one of these modules can you use to write embedded python code?
>I.e.
>
>foo.html.py:
><html>
><body>
>Looping through red, blue, green:
><python>
>colors = ['red', 'blue', 'green']
>for color in colors:
>    print color
></python>
></body>
></html>
>

Well, in Zope (www.zope.org, natch') you can write

<dtml-in "['red','blue','green']">
  Color is <dtml-var sequence-item><br>
</dtml-in>

Or you can call an external Python function.

There is much more to Zope, though.

-- cary




More information about the Python-list mailing list