Select Choice Date

A select choice that uses dates for values

Data

None
  

Template

${form()|n}

Form Definition

schema = schemaish.Structure()
schema.add('myDateSelect', schemaish.Date())
options = [(datetime.date(1970,1,1),'a'),(datetime.date(1980,1,1),'b'),(datetime.date(1990,1,1),'c')]
form = formish.Form(schema, 'form')
form['myDateSelect'].widget = formish.SelectChoice(options)