I'd forgotten I'd written that!
I agree, there needs to be more documentation on what the arguments do. However, in the above, by passing an argument named "none" you can define an empty list item which appears at the front of the list. Take an example of a list of countries... with no none argument: [Australia, Canada, United States] If you wanted it to have an empty item at the top, set none to "" (an empty string). Doing so would produce: [, Australia, Canada, United States] If you wanted something a little more verbose, just pass a string that isn't empty: [Please select a country., Australia, Canada, United States] Passing that argument to the make_list function allows for the top "empty" value to be customized on each call. Matthew Bevan, Systems Administrator Top Floor Computer Systems Ltd. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears -~----------~----~----~----~------~----~------~--~--- |
- [TurboGears] Re: befuddled by PassingArgumentsToCallables wi... Matthew Bevan

