[Zope] where are you sticking site-wide methods/resources ? (too manyDTML-WITH's) DTML-WITH's)
Kevin Dangoor
kid@kendermedia.com
Wed, 29 Sep 1999 10:42:21 -0400
-----Original Message-----
From: chas <panda@skinnyhippo.com>
To: Phil Harris <phil@philh.org>; zope@zope.org <zope@zope.org>
Date: Wednesday, September 29, 1999 6:26 AM
Subject: RE: [Zope] where are you sticking site-wide methods/resources ?
(too manyDTML-WITH's) DTML-WITH's)
>At 08:38 AM 9/29/99 +0100, Phil Harris wrote:
>>Couldn't you just do something like (untested)
>>
>><dtml-var "Imports.folder.method()">
>
>One of the first things I tried as I remember. Worked OK for
>simple methods but for more complex methods :
>
>a) variables kept disappearing (which means I really don't grok
> this acquisition business yet).
>
>b) the DTML method could no longer 'import' other things.
Try this:
<dtml-var "Imports.folder.method(_.None, _)">
This will pass the namespace to the method, and possibly fix a & b above...
Kevin