Dero schrieb:
> 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 .

Can you try and come up with a minimal example project that exposes this 
behavior?

Apart from that: I had these problems as well, for quite a while now 
(unfortunately in a large project that is hard to debug). What helped me 
was do declare a schema with the validator as well, and pass that to the 
   validate-decorator in _addition_ to the form.

Diez

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to