[Zope] Session without cookies.

Jens Vagelpohl jens at dataflake.org
Mon Apr 11 19:09:48 EDT 2005


On Apr 12, 2005, at 1:02, Fernando Lujan wrote:
>> The URL "test1" in the form tag is obviously *not* generated by Zope. 
>> You put it in there manually. So it cannot work as you expect.
>
> Hum, I see. Just web pages that aren't dinamically generated by Zope. 
> For instance, other DTML document will not keep the Session. Is this 
> correct?

No, you misunderstand what Chris said earlier. You need to let Zope 
generate the URL. In this case, instead of just saying...

<form action="test1">

you could do

<form action="<dtml-var "test1.absolute_url()">">

of course that's ugly because it looks like putting a tag inside a tag, 
ZPT is much nicer that way:

<form action="" tal:attributes="action here/test1/absolute_url">

jens



More information about the Zope mailing list