[Zope] Acquisition and Error Handling Questions
Tim Owen
timowen@voyager.net
Wed, 5 Dec 2001 03:55:56 -0500
1. How do I set the cookie path? Do I use RESPONSE.setBase(BASEPATH1) prior
to setting the cookie? I tried this and viewed the cookie in Netscape, but
it did not seem to do the trick.
2. How do I call a Python script or Z SQL Method in a different folder at
the same level in the folder tree?
Thanks.
----- Original Message -----
From: "Oleg Broytmann" <phd@phd.pp.ru>
To: "Tim Owen" <timowen@voyager.net>
Cc: <zope@zope.org>
Sent: Tuesday, December 04, 2001 7:03 AM
Subject: Re: [Zope] Acquisition and Error Handling Questions
> On Tue, Dec 04, 2001 at 05:52:42AM -0500, Tim Owen wrote:
> > Question Part 1: I want to set a cookie in a DTML method in
sub-subfolder
> > 3 and use it in a DTML document in sub-subfolder 4. Looks like the
> > cookie is not visible by the DTML document. How do I make the cookie
> > visible?
>
> Setting the path of the cookie.
>
> > Question Part 2: When trying to call Z SQL Methods or Python Scripts in
a
> > sub-subfolder 4 from sub-subfolder 3 I get syntax errors. How do I do
> > that? Tried the following
> >
> > >From sub-subfolder 3 I call
> >
> > <dtml-if expr="../sub-subfolder 4/function(parm)='_['variable']'">
> ^^^^ Inside "" DTML expects a Python expression, not an
> URL.
>
> Oleg.
> --
> Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru
> Programmers don't die, they just GOSUB without RETURN.
>