[Zope] Q: Namespace, Acquisition, and Properties

Christopher J. Kucera ckucera@globalcrossing.com
Mon, 05 Jun 2000 10:30:03 -0500


> Wilkinson Charlie E wrote:
> In the top level folder (root) I have a dtml method title template
> that contains html code and dtml vars that are (intended to be)
> populated by properties of various subfolders as well as a value or
> two passed directly.  The title template is "called" from dtml
> methods in the root and sub-folders using something like:
> 
> <dtml-var "title_block(app_screen = 'Main Screen')">

Chances are, you're losing your namespace.  When you call another method
in quotes, you tend to lose a lot of information unless you use the cryptic:

<dtml-var "title_block(_.None, _, app_screen='Main Screen')">

or:

<dtml-var "title_block(REQUEST,_,_.None, app_screen='Main Screen')">

I'm guessing this'll fix it for you. :)

Good luck!

(Oh, and try not to post HTML to the list . . .)

-CJ