[Zope] Zope Eats Memory
Robert Rottermann
robert@redcor.ch
Thu, 25 Oct 2001 21:53:49 +0200
you can call a dtml-method like a function with parameters
dtml-method 1 called callTest:
<dtml-var standard_html_header>
<dtml-var param1><br>
<dtml-var param2><br>
<dtml-var standard_html_footer>
you call this method like so:
<dtml-var "callTest(None,_,param1=21, param2='was called from far')">
Robert
----- Original Message -----
From: "Tommy Johnson" <tommy@7x.com>
To: "Zope List" <zope@zope.org>
Sent: Thursday, October 25, 2001 8:43 PM
Subject: RE: [Zope] Zope Eats Memory
> > Are you using REQUEST.set() a lot? I am (my presentation code,
> > unfortunately, uses these quite aggressively). I have dtml that
> > wraps other
> > DTML "core" presentation widgets, and I use <dtml-var
"REQUEST.set('foo',
> > '')"> a lot.
> >
> > Does anyone know if there is another, more graceful, way to pass
> > parameters
> > from a wrapping dtml method to a dtml method it calls?
>
> If you find it, please let me know. I'm beginning to miss ColdFusion's
> variable scopes. ;-)
> I seem to find myself using REQUEST.set 95% of the time, instead of
> <dtml-let> generally because I want to pass variables around, or may need
> them somwhere later in the method. I hate having to do this, but ....
>
> Tommy
> Innovation: The Best Way To Predict The Future ... Is To Create It.
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>