Hi Together
class NewsFields(widgets.WidgetsList):
def __init__(self, **kw):
super(NewsFields, self).__init__(**kw)
date = widgets.CalendarDatePicker(label='Datum:',
validator=validators.DateConverter)
in my controller i have a method witch recieves the values
@expose()
@validate(form=news_form)
@error_handler(edit)
def saveadd(self, *args, **kwargs):
news = News(date=kwargs['date'],title=kwargs['title')
raise redirect("/news")
in the Model the column is defined as 'date = DateCol(default=datetime.now)'
when i fill the Formfield with the value 05/30/2006 and submit the
value to add the entry i got the error:
Invalid: expected an date/time string of the '%Y-%m-%d' format in the
DateTimeCol 'date', got <type 'unicode'> u'2006-05-30 22:05:00'
instead
I think the value is writed, but not in the right way because the list
of the newsentrys display the same error.
I'm Working on Database SQLite.
Somone has a hint please?
TIA Ivo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---