[Zope] Zope Eats Memory
Robert Rottermann
robert@redcor.ch
Fri, 26 Oct 2001 07:24:03 +0200
I feel tat both solutions a awfully ugly,
I therefore hate them both.
I normally try to use scripts or products that are much better in handling
parameters.
Also page templates are nicer in this respect.
Robert
----- Original Message -----
From: <sean.upton@uniontrib.com>
To: <tommy@7x.com>; <zope@zope.org>
Sent: Thursday, October 25, 2001 10:37 PM
Subject: RE: [Zope] Zope Eats Memory
> I would think you could do this with <dtml-let> wrapped around your
> DTML-call, not that this is entirely graceful?
> Sean
>
> -----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')">
>
> Mine:
> <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,
> param3=productID)">
>
> 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.
>
> 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 )
>
> _______________________________________________
> 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 )
>