[Zope-dev] dtml-call problem

Dr. Peer Griebel peer@knoll-is.de
Thu, 06 Apr 2000 10:39:21 +0200


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

Traceback (innermost last):
  File D:\Programme\uZope\lib\python\ZPublisher\Publish.py, line 214, in
publish_module
  File D:\Programme\uZope\lib\python\ZPublisher\Publish.py, line 179, in
publish
  File D:\Programme\uZope\lib\python\Zope\__init__.py, line 202, in
zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File D:\Programme\uZope\lib\python\ZPublisher\Publish.py, line 165, in
publish
  File D:\Programme\uZope\lib\python\ZPublisher\mapply.py, line 160, in
mapply
    (Object: method_a)
  File D:\Programme\uZope\lib\python\ZPublisher\Publish.py, line 102, in
call_object
    (Object: method_a)
  File D:\Programme\uZope\lib\python\OFS\DTMLMethod.py, line 145, in
__call__
    (Object: method_a)
  File D:\Programme\uZope\lib\python\DocumentTemplate\DT_String.py, line
502, in __call__
    (Object: method_a)
  File D:\Programme\uZope\lib\python\DocumentTemplate\DT_Util.py, line
335, in eval
    (Object: method_b())
    (Info: method_b)
  File <string>, line 0, in ?
  File D:\Programme\uZope\lib\python\OFS\DTMLMethod.py, line 141, in
__call__
    (Object: method_b)
  File D:\Programme\uZope\lib\python\DocumentTemplate\DT_String.py, line
502, in __call__
    (Object: method_b)
  File D:\Programme\uZope\lib\python\DocumentTemplate\DT_Util.py, line
335, in eval
    (Object: method_c)
    (Info: method_c)
  File <string>, line 0, in ?
NameError: (see above)



-- 
connection reset by
      Peer

_______________________________________________________________________
Dr. Peer Griebel                                  Tel. +49 7581 4831 23
Geschäftsführer                                   Fax. +49 7581 4831 11
Knoll Informationssysteme GmbH                   http://www.knoll-is.de
Dreiköniggasse 17                               mailto:peer@knoll-is.de
88348 Saulgau                        privat: mailto:peer.griebel@gmx.de