Re: [Zope] sort=id, _.map, _.lambda woes
Marco Mariani writes: > > > 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: > > > > 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 ___ Zope maillist - [EMAIL PROTECTED] 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] sort=id, _.map, _.lambda woes
Hi all! I need the following: 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: but _.map doesn't exist (nor _.lambda. Why?) What is the Right Thing to do? I already know the easy answer (external method) :-) Of couse I cannot add an order property to the file objects, as they're in LocalFS. Thanks -- "This company has performed an illegal operation and will be shut down. If the problem persists, contact your vendor or appeal to a higher court." - Signal11 on slashdot ___ Zope maillist - [EMAIL PROTECTED] 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 )