"Dr. Peer Griebel" wrote:
Hi,
I think there is a problem in Zope:
I have 3 methods:
method_a: <dtml-call "method_b"> method_b: <dtml-call "method_c"> method_c: <dtml-return "_.int(1)">
I can call method_a without problems. But if I change it from <dtml-call "method_b"> to <dtml-call "method_b()"> (look at the braces!) I get an error message. I think this is an error in Zope. Can anybody verify this?! I tried to use such a construct in a larger system here.
Error Type: NameError Error Value: method_c
The methods must be passed the current namespace or they don't find other methods in it. If you omit () then it is done automatically. Manually you will need (yes, really) <dtml-var "method_b( _.None, _ )"> I used dtml-var instead of dtml-call, because dtml-call returns nothing. ---------------- Hannu