[Zope] Loosing namespace when calling a DTML-Method

Kevin Dangoor kid@kendermedia.com
Tue, 1 Feb 2000 20:25:12 -0500


Hello,

    My first guess is that this is because of how you're calling the DTML
method.

<dtml-var mymethod>

will automatically pass the namespace in

<dtml-var "mymethod()">

will not.

To call a method in the second form *and* get the namespace to pass along as
well,
<dtml-var "mymethod(_.None, _)">

Hope this does the trick...

Kevin

----- Original Message -----
From: "Bertl" <bs@firstnet.dhs.org>
To: <zope@zope.org>
Sent: Tuesday, February 01, 2000 8:28 PM
Subject: [Zope] Loosing namespace when calling a DTML-Method


> When i call a DTML Method with dtml-var or dtml-call, the called method
> cannot access any object. Not REQUEST, not an with dtml-let or
> dtml-with assigned variable, nothing. Further the called method cannot
> access any Objects in it's own folder, even when i wrap it with <dtml-with
> folder> (which is just the same problem).
> Accessing the same variables inside the calling function works just like
> expected. When i change the DTML Method to a DTML Document, it cannot
> access variables from outside, but gets an Authentication error when
> accessing objects in the current namespace