[Zope] sort=id, _.map, _.lambda woes

Dieter Maurer dieter@handshake.de
Sun, 2 Jul 2000 23:40:26 +0200 (CEST)


Marco Mariani writes:
 > <dtml-in "store.fileValues()" sort=id>
 > 
 > where "id" is a filename representing a number.
 > Of course, sort uses it like a string and sorts it wrong.
 > 
 > Maybe, since sortexpr= is not implemented (yet?) I could
 > get away with:
 > 
 > <dtml-in "_.map(_.int,store.fileValues())" sort=id>
 > 
 > but _.map doesn't exist (nor _.lambda. Why?)
You would not need _.lambda.
"lambda" is not a function but a keyword in Python expressions.
It, therefore, is not required in "_" to be used.



Dieter