title: How to dynamically fill a selectbox / dropdownbox in a form using web.py?
body: <p>All web.py form examples are in the following format (from webpy.org):</p>
  
  <pre><code>myform = form.Form( 
      form.Textbox("boe"), 
      form.Textbox("bax", 
          form.notnull,
          form.regexp('\d+', 'Must be a digit'),
          form.Validator('Must be more than 5', lambda x:int(x)&gt;5)),
      form.Textarea('moe'),
      form.Checkbox('curly'), 
      form.Dropdown('french', ['mustard', 'fries', 'wine'])) 
  
  class index: 
      def GET(self): 
          form = myform()
          # make sure you create a copy of the form by calling it (line above)
          # Otherwise changes will appear globally
          return render.formtest(form)
  
      def POST(self): 
          form = myform() 
          if not form.validates(): 
              return render.formtest(form)
          else:
              # form.d.boe and form['boe'].value are equivalent ways of
              # extracting the validated arguments from the form.
              return "Grrreat success! boe: %s, bax: %s" % (form.d.boe, form['bax'].value)
  </code></pre>
  
  <p>I don't want to fill the dropdown box (form.Dropdown in the example above) static when declaring the form, but in the GET/POST method using entries retrieved from a database table when the page is called.</p>
  
  <p>I've searched for a couple of hours but can't find a hint anywhere (google, webpy.org, google groups)</p>