You are not logged in Log in Join
You are here: Home » Members » 4AM Productions (Evan Simpson) » DTMLWiki » TooManyWaysToDoIt

Log in
Name

Password

 
 
FrontPage » EvolutionaryProposals »

TooManyWaysToDoIt

Poster Children

  • _[] and _.getitem().
  • dtml-let, _.namespace(), and REQUEST.set() (though granted, REQUEST.set gives different functionality).
  • _.DateTime?() and ZopeTime?().

Rationale

It's for content managers. There needs to be one way to do it that works in all contexts, so that people aren't bitten by changes in expected functionality, like <dtml-var expr="_[foo]"> versus <dtml-var expr="_[foo].property">

Some of these things, like _.namespace(), are there for hysterical reasons, but one should be canonicalized, the other deprecated, and phased out over some specified period.

-- MindLace

And Jeffrey Says

The shortcuts are really annoying. The fact that .namespace() can be just () is making DTML Scripting become almost harder to read than APL! exprs==evil.