I was wondering if anyone could offer advice or an example (if handy) for
creating a DateWidget using the form2 package. I'm thinking of something
along the lines of 3 SingleSelectWidgets grouped together (each representing
day, month, and year). This lead me to investigate the WidgetList, but I'm
having a hard time understanding how use it. In the form I tried adding one
as follows:
self.add(WidgetList, 'bday', element_type=SingleSelectWidget,
element_name="day",
value=None, title='Birthday:',
options=[ "1", "2" ],
required=True)
which raises a ValueError:
ValueError: a non-empty list of 'options' is required
That was my best guess after poking through the code, but I'm sure I'm over
looking something. Any thoughts? Thanks in advance,
-Charles.