For some reason you have to "return" everything that should be available
to zope. You can return a sequence and loop through it with DTML or you
can build a variable with everything you want to display and then return
the variable.

I have no idea why this is so, and why you can't just the print
statement as an equivalent to <dtml-var>.

There is probably elegant ways of replacing DTML with external methods
or Python Methods, I was just unable to find documentation and examples
on it until now. Can anyone help with this?


> Sven Hohage wrote:
> Hallo,
> that's the problem:
> I've made an external method which is working with lists and should
> return the result to Zope. The python code is working very well, but
> is sending everything to sys.stdout( I'm using the
> print-statement).How do I convince  Zope to print the result on the
> html-page.
>    Thanks.

In a world without fences, who needs gates?

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to