[Zope] change variable

Charlie Reiman creiman@kefta.com
Tue, 23 Jul 2002 09:45:01 -0700


Uh, dtml-let is NOT equivalent to REQUEST.set. This is not an either/or
decision here. dtml-let is a namespace operator, much like Lisp's (let ...)
operator. Unforunately, most people assume let is like BASIC's let, which is
assignment, not namespace creation.

To put it another way, DTML does not prevent you from assigning values to
variables, but it does nothing to make it easy (like providing syntax). I've
always wondered if there was a design decision behind this or just a simple
oversight.

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Ed
> Leafe
> Sent: Tuesday, July 23, 2002 9:30 AM
> To: D. Rick Anderson
> Cc: zope@zope.org
> Subject: Re: [Zope] change variable
>
>
> On Tuesday, July 23, 2002, at 11:35  AM, D. Rick Anderson wrote:
>
> > I preffer to use REQUEST.set over dtml-let.
>
> 	Wow, that's a HUGE improvement over the awkward requirements of
> dtml-let! I never thought of doing things that way, but it sure makes
> things a lot easier.
>
> 	I'm a newbie, and am using The Zope Book as my guide. And while I
> found REQUEST.set described in that book, it was buried in a description
> of the REQUEST object, and no mention of this technique was made
> anywhere. Is there another good book you would recommend as a source of
> good programming practices in Zope? I get the feeling that, like
> dtml-let, I'm doing things the hard way a lot of the time.
>
>       ___/
>      /
>     __/
>    /
>   ____/
>   Ed Leafe
>   http://leafe.com/
>   http://foxcentral.net
>
>
>
> _______________________________________________
> 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 )
>