[Zope] Zope Eats Memory

sean.upton@uniontrib.com sean.upton@uniontrib.com
Thu, 25 Oct 2001 13:37:58 -0700

I would think you could do this with <dtml-let> wrapped around your
DTML-call, not that this is entirely graceful?

-----Original Message-----
From: Tommy Johnson [mailto:tommy@7x.com]
Sent: Thursday, October 25, 2001 1:14 PM
To: Zope List
Subject: RE: [Zope] Zope Eats Memory

> 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

Yes, I do that alot too. Thought it was preety cool when I first found out.
Now, it's a lifesaver. But, I still need to set REQUEST variables, because
they represent the parameters I'm passing.

Your example:
<dtml-var "callTest(None,_,param1=21, param2='was called from far')">

<dtml-var "REQUEST.set('departmentID', '17')">
<dtml-var "REQUEST.set('categoryID', '2')">
<dtml-var "REQUEST.set('productID', '21')">

<dtml-var "callTest(None,_,param1=departmentID, param2=categoryID,

Usually, I'll need to set those variables before calling the method. That
way not only is the method dynamic, but the actual call to the method is
dynamic as well.

Innovation: The Best Way To Predict The Future ... Is To Create It.

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )