On Thu, Oct 22, 2009 at 2:07 PM, Russell Keith-Magee <[email protected]> wrote: > > On Thu, Oct 22, 2009 at 7:46 PM, Waldemar Kornewald > <[email protected]> wrote: >> >> Hi again, >> now a little question: >> >> Some fields do type conversions. For example, TimeField converts >> datetime objects into time objects. >> App Engine doesn't support time, but only datetime, so should we do >> such conversions at the backend level or should we expect the field to >> handle it (esp. if it already has such conversion code)? > > I'm unsure what problem you're having here. The backend needs to > return a type that the TimeField can turn into a Python Time object. > TimeField is fairly liberal in what it will accept - DateTime objects, > Time objects, and strings that express a time will all be handled. > > As long as your backend returns one of these acceptable types, you're done.
Great. I just wasn't sure if this was just an internal implementation detail which we better shouldn't rely on in our backends. Bye, Waldemar Kornewald --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" 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/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
