How to escape from restricted code in Python Script?
Hi! 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) The problem is that when calling /MyShop/addItem?..... It seems that namespace is limited to the addItem Python Script, so my Zope can't even found the standard_html_method to render it inside the index_html method I'm trying to return to the user. It works however, whet I call directly /MyShop/index_html Where could I be missing something? Thanks for your help! Gari _________________________________________________________ Aurki Euskara hutsezko bilatzailea http://www.aurki.com Zure laguntza behar dugu. Egin zaitez editore!
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
Yes! Thank you! It works great this way. The original index_html is a Page Template, so I didn't realize that I would have to call in a diferent way to a DTML Method. Magic of Zope again... ;-) Gari At 23:53 03/04/02, Dieter Maurer wrote:
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>
_________________________________________________________ Aurki Euskara hutsezko bilatzailea http://www.aurki.com Zure laguntza behar dugu. Egin zaitez editore!
participants (2)
-
Dieter Maurer -
Garikoitz Araolaza