On Tue, May 20, 2008 at 3:38 PM, Mike Orr <[EMAIL PROTECTED]> wrote: > If you're using the rails helpers, I would first make a list of > label-value pairs, give that to options_for_select, and feed the > result to select(). If your homegrown function is working there's no > reason to switch from it until you're ready to migrate to the new > helpers. However, I find join(map(lambda ...))) very hard to read. > It looks like you're essentially doing this: > > def create_type_options(type_list): > options = [(ct.name, ct.id) for ct in type_list] > return options_for_select(options)
Thank you Mike. That is what I was looking for - just something a bit more readable. Thanks again, Joe --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
