Roundup Tracker - Issues

Issue 724738

classification
sort property list in web select boxes. (patch included)
Type: rfe Severity: normal
Components: Database Versions:
process
Status: closed fixed
:
: richard : richard, rouilj
Priority: normal :

Created on 2003-04-20 20:36 by rouilj, last changed 2003-04-20 20:36 by rouilj.

Files
File name Uploaded Description Edit Remove
sort_props_in_templates.diff.txt rouilj, 2003-04-20 20:36 diffs to sort property lists used for select boxes in web interface.
Messages
msg3209 Author: [hidden] (rouilj) Date: 2003-04-20 20:36
I thought I saw an RFE requesting that the names o
the properties be formatted when using tal statments like:

    context/properties

Sourceforge has been up and down all day, so I can't check or upload this file right now, so I thought I would send it to the list.

With this patch context/properties will produce a sorted list. You can use python:context.properties(sort=False) to get the old behavior.

 I have attached a patch to templating.py to do that. I basically took the original code, duplicated it and modified the duplicate to sort the property names. This really does make it easier to select a property by typing letters, or scanning the list visually.

 If somebody with more python experience can tell me how I could have sorted the tuples of name, item directly, I would love to know.

Patch attached. This was taken from:

http://sourceforge.net/mailarchive/message.php?msg_id=4122250
History
Date User Action Args
2003-04-20 20:36:20rouiljcreate