[Twisted-web] Passing context through/around/across webform

James Y Knight foom at fuhm.net
Tue Oct 19 19:17:25 MDT 2004


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




More information about the Twisted-web mailing list