7 May
2001
7 May
'01
1:56 p.m.
* Dieter Maurer <dieter@handshake.de> [2001-05-04 20:32]:
With "sort" your sort specification is constant. You can say, sort first according to "time" then to "id". But you cannot say, sort according to the field name currently held in variable "sort_by". This is necessary for such nice "sort" features found wide spread: click on a column head and the content is sorted with respect to this column... You would use "sort_expr=sort_by" for this.
Well, you _can_ do this only using the "sort" attribute. I think a lot of folks do it the hard way, not the smart way you described, because of page 74 in the Zope Book's PDF file (Chapter 5, the File Library example). Cheers, Nils