Paul McNett wrote: > Ed Leafe wrote: >> On Mar 12, 2008, at 5:31 PM, Henning Hraban Ramm wrote: >>> I couldn't find a hook for the date display format - I'd prefer ISO >>> yyyy-mm-dd, because you can feed that directly to MySQL or the like, >>> but any reliable format would do for the moment. >> We abandoned direct formatting of dates in textboxes a while ago: >> there were simply too many ways to mess it up. Now we do not mess with >> the display at all; we simply use what Python gives us, which will be >> dependent on how your machine is set up. > > See also dabo.settings.dateFormat and friends: > > From dabo/settings.py: > >> 114 # Date and Time formats. None will use the os user's settings, but >> 115 # your code can easily override these. Example: >> 116 # dabo.settings.dateFormat = "%d.%m.%Y" -> "31.12.2008". >> 117 dateFormat = None >> 118 dateTimeFormat = None >> 119 timeFormat = None > > So Ed's right: by default the date formats in dTextBox will come from > the OS user settings (using Python's locale module and assuming the LANG > is set properly, which on some platforms may not be by default), but > you also have the ability to override it if absolutely necessary. > > Now, I made the changes to dTextBox a while ago, but never followed > through with dDateTextBox. It sounds like it starts off correctly, but > then user input screws it up. > > I'm not going to PyCon this year, but I'm very busy with other stuff, so > I can't promise to look at it any time soon. If neither Ed nor I chime > in about it within a week, could you please add a ticket in trac > regarding this? > > Thanks! > Paul
You should know that there are open issues with dateformats as I already reported these for dDateTextBox. It's just that nobody had enough time to fix these up to now. I do not think we need more tickets for this, as there are: http://trac.dabodev.com/ticket/1131 http://trac.dabodev.com/ticket/1138 http://trac.dabodev.com/ticket/1038 Uwe _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]
