[Zope] NameError when rendering a zsql-method in a dtml-method in a dtml-method

Dieter Maurer dieter@handshake.de
Wed, 20 Jun 2001 19:00:24 +0200 (CEST)


Andreas =?iso-8859-1?q?H=F6lzl?= writes:
 > when rendering a dtml-method which renders itself a dtml-method which
 > calls zsql-method i get the following:
 > 
 > ErrorError Type: NameError
 > Error Value: There is no variable named 'name_of_zsql_method'
Almost surely, you have broken the DTML namespace chain:

  If you call DTML objects explicitly (i.e. in an
  expr="..."), then you (usually) must pass two
  positional parameters: "_.None" and "_".

More information

  URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html



Dieter