
Oct. 20, 2004
1:17 a.m.
On Oct 19, 2004, at 12:27 PM, Tommi Virtanen wrote:
James Y Knight wrote:
Here's my horribly hacked up copy of Choice that works for what I need. The changes from the normal Choice are that choicesAttribute is really choicesMethod, and that it's supposed to return a list of (id, text),
Sounds like you should use dict instead of a list. Otherwise there could be duplicate ids.
But since I provide the list, I can guarantee that there aren't. And I need the ordering. And even if there are duplicates, it's not a horrible thing. It just means there'll be two entries in the menu that mean the same thing. Under some conditions you might even want that. James