[Zope] How to escape from restricted code in Python Script?
Dieter Maurer
dieter@handshake.de
Wed, 3 Apr 2002 23:53:55 +0200
Garikoitz Araolaza writes:
> I'm too used to the "magic of Zope" and when it doesn't work I have to ask
> to the wizards. ;-)
>
> I'm recycling the ShoppingCart demo in Zope 2.5 in order to use session
> tracking for a shopping cart system I'm developping.
>
> I have problems with the last lines in the addItems Python Script:
>
> return container.index_html(REQUEST)
If "index_html" is a DTML object, then this looks wrong.
In this case, it should be "container.index_html(container,REQUEST)".
Details in the "Calling DTML objects section of
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
Dieter