"Phillip J. Eby" wrote Let: allows read-only variables to be computed whose values are usable within a DTML nesting scope.
Local: allows writable variables to be computed, whose values are usable and changeable within a DTML nesting scope.
Set: singleton tag that changes the value of a "local" variable, as long as it was defined in the innermost surrounding "local" block.
Given the ongoing discussions over the difficulty of learning DTML, the general ugliness of DTML, and the discussion over what DTML is actually good for, isn't adding local/set just taking us further and further down the path of horror? It's already _way_ too easy to start with a simple DTML page, and then extend it and extend it beyond any sane limits until you end up with a perl-like morass of code. Utterly unmaintainable. Surely using PythonMethods or ExternalMethods is a much much better approach here, rather than bolting yet another bag onto the side of DTML. dtml-let solves a problem: it's a much nicer way to spell _.namespace() I'm not convinced that _.namespace is such a great idea in the first place. I've seen too much DTML that makes me cry when I have to go and maintain it - I'd actually like to see it made a bit more obvious when you should stop doing things in DTML. -- Anthony Baxter <anthony@interlink.com.au> It's never too late to have a happy childhood.
On Sat, Dec 11, 1999 at 01:19:28PM +1100, Anthony Baxter wrote:
dtml-let solves a problem: it's a much nicer way to spell _.namespace()
You answer yourself. dtml-local is IMHO wrong. But dtml-set should be added, it fits naturally. Or, in your words, is a much nicer way to spell REQUEST.set. []s, |alo +---- -- I am Lalo of deB-org. You will be freed. Resistance is futile. http://www.webcom.com/lalo mailto:lalo@webcom.com pgp key in the web page Debian GNU/Linux --- http://www.debian.org Brazil of Darkness -- http://zope.gf.com.br/BroDar
Anthony Baxter writes:
Given the ongoing discussions over the difficulty of learning DTML, the general ugliness of DTML, and the discussion over what DTML is actually good for, isn't adding local/set just taking us further and further down the path of horror?
I don't think so. My objection with DTML isn't that you can put conditionals into it, but that so many tasks require that you know something about the fiddly details of namespace implementation. _.namespace() was ugly, and dtml-let fixed it; the REQUEST=REQUEST, RESPONSE=RESPONSE common in many ExternalMethod invocations is still ugly, and I'd love to see it go away. (But I think that's hard.) -- A.M. Kuchling http://starship.python.net/crew/amk/ Well, you are the best I have, Cluracan, and to say that is to say little indeed. -- Queen Titania, in SANDMAN #52: "Cluracan's Tale"
participants (3)
-
Andrew M. Kuchling -
Anthony Baxter -
Lalo Martins