On 04/11/06, Matt Wilson <[EMAIL PROTECTED]> wrote: > > I have a table of ice cream flavors, and I'm sure that the list won't > change over time. > > I need to draw a form with a pulldown that lists the flavors. If at all > possible, I don't want to hit my database on every page view in order > to populate the pulldown. > > I'm thinking about generating my template by using a script to write it > for me.
It doesn't hit the database on every pageview, IIRC. In fact if you want it to, you have to pass a callable instead of a list of values. The list is created when the form is instantiated, and remains the same. Turn on sql debug and check, if you want to be sure. Ed --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

