[Zope] problem with URL when calling script
Martin Herceg
martin at ufon.sk
Wed Mar 3 04:48:02 EST 2004
Hallo,
i have one question about calling python script from ZPT
my original url is ...:8080/index_html
and when i call script
my url after this is ....:8080/skript and not ...:8080/index_html
any idea?
---------------------------------------------------------------------------------
PAGE TEMPLATE
---------------------------------------------------------------------------------
<form name="pokus" method="post" action="skript"><input type="submit"
name="submit" value="odosli">
<input type="text" name="orders.premenna:records"></form>
<span tal:define="global items here/skript" tal:condition="items">
<table><tr><td tal:content="items/prva">pokus</td></tr></table></span>
---------------------------------------------------------------------------------
SKRIPT
---------------------------------------------------------------------------------
session=context.REQUEST.SESSION
items=session.get('items',{})
if order['premenna']=='1':
item = {'prva': '0258'}
session['items']=item
return container.index_html(REQUEST)
else:
item = {'prva': '2582'}
session['items']=item
return container.index_html(REQUEST)
--
martin
==========================================
More information about the Zope
mailing list