We had the same problem and reported/fixed it in ticket #1507,
revisions r3504 (1.0 branch) r3505 (1.1 branch). If you can't wait
till the next release, you may be able to work around the bug by
omitting the validator (the buggy code tries to guess your validator
if you supply a "format" but no "validator" argument).
-Rick
On Sep 20, 1:40 am, Dero <[EMAIL PROTECTED]> wrote:
> Hello
>
> after updating a tg application to tg 1.04b1
> we get following errors from the line :
>
> jobdate = CalendarDateTimePicker(label = _('Job Date'),name =
> 'jobdate',calendar_lang = 'en',format = '%d/%m/%Y %H:%M',validator =
> validators.DateTimeConverter(format="%d/%m/%Y %H:%M"))
>
> Error shown :
>
> "/usr/lib/python2.5/site-packages/SQLObject-0.9.0b1-py2.5.egg/
> sqlobject/col.py", line 1067, in from_python
> (self.name, type(value), value), value, state)
> Invalid: expected a datetime in the DateTimeCol 'jobdate', got <type
> 'unicode'> u'20/09/2007 13:25' instead
>
> This had worked before in tg 1.0 or thereabouts.
> Apparently the converter does not what it is supposed to do.
>
> Is there an easy way for a fast fix ?
> We need to store date and time .
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---