[Zope] Help: dtml-var expr -> DTML method -> ZSQL method

Dieter Maurer dieter@handshake.de
Mon, 12 Feb 2001 21:36:11 +0100 (CET)


Martin Andrews writes:
 >     <dtml-var expr="get_rid()">
You break the namespace chain!

  Called this way, "get_rid" does not have any context
  (if it is a DTML Method rather than a DTML Document).
  Any access to a Zope object will fail.

Use:

	<dtml-var expr="get_rid(_.None,_)">


Dieter