[Zope] The old dmtl namespace question
Tom Cameron
tom@mooball.com
Wed, 6 Jun 2001 12:43:51 +1000
I am sorry to ask the same question again, but I am still completely stumped
after many hours of trying and reading.
I have:-
Folder1
- method1
Folder2
- method2 <- this method calls method3
- method3
When I call an object like this...
>From method1
<dtml-call "REQUEST.set('variable','value')"> <- I want to set some
variables too
<dtml-var "folder2.method2">
The method works perfectly, except that it does not render.
When I call it like this....
>From method1
<dtml-call "REQUEST.set('variable','value')">
<dtml-var "folder2.method2()">
It seems to have no namespace at all and causes an error (method2 is calling
method3 and cant find it.)
I have found a few similar posts to the mailing lists and most responses
point to..
http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html
which I have read over and over and still dont understand.
It mentions _.None, and _ but I cant work out how they work.
Basically I want method2 to have access to all the methods in folder2 as
well as all REQUEST variables.
Can someone please show some examples of how to do this.
Thanks
Tom