Hi, If you specify a CalendarDateTimePicker for the widget you need a DateTimeCol (ie: Date + Time is stored)
You could also use a turbogears.widgets.CalendarDatePicker if you only want the date part but no time... depends on your need. For the moment since you have a DateCol in your model I would suggest you try to use a turbogears.widgets.CalendarDatePicker Cheers, Florent. On 4/25/07, p0tat03 <[EMAIL PROTECTED]> wrote: > > Hey all, > > I'm trying to implement a DateTimePicker widget in a form, but I'm > receiving a strange error: > > Field: > ==== > > call_start = widgets.CalendarDatePicker(name='call_start', \ > label="Call Start", validator= \ > validators.DateTimeConverter(format="%m/%d/%Y")) > > The form submits alright, but when I try to store the result into a > DateCol, I get the following: > > Invalid: expected an date/time string of the '%Y-%m-%d' format in the > DateTimeCol 'call_start', got <type 'str'> '2007-04-09 00:00:00' > instead --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

