[Zope-dev] Namespace funkiness

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Tue, 16 Nov 1999 12:13:19 +1100


>>> Thomas Marsh wrote
> I have a dtml method, "A", that calls another dtml method, "B". Now, B
> has some <dtml-var blah> calls in it. B works fine on its own, but when A
> calls B, for some reason B cannot see blah (a property set in the root
> folder). I see this behaviour a lot. Can anyone explain it?

How does it call it - with <dtml-var B>? Or with <dtml-var "B()"> ?

If the latter, you'll need to pass the request and namespace through
to it.

Something like <dtml-var "B(REQUEST,_)">

Anthony