[Zope] dtml-with problems

Scott Anderson sanderson@ttm.com
Wed, 15 Sep 1999 17:22:19 -0400


> Try:
> 
> <dtml-var expr="renderReportType(_,_.None,renderType='edit',
> renderID=reportTypeIDSearch)">

Er, nope. :-)

I get the same error passing the namespace.

> There are some How-To's on the Zope site that talk about the Namespace,
> which is a critical feature of DTML.  Without passing in the _ and
> _.None, the DTML Method that you're calling loses the namespace of the
> DTML Method/Document calling it.

Incidentally, why is the namespace lost over a method call?

> <dtml-with expr="_.namespace(renderType='edit',
> renderID=reportTypeIDSearch)">

This one works. Thank you!

Are there any better ways of passing state between methods/documents?
Some sort of session object or the like?

Regards,
-scott anderson