[Bug 170285] krosspython: QDate, QTime and QDateTime aren't converted to native Python data types

Sebastian Sauer mail at dipe.org
Fri Oct 3 08:31:07 CEST 2008


http://bugs.kde.org/show_bug.cgi?id=170285


Sebastian Sauer mail dipe org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mail at dipe.org
             Status|NEW                         |ASSIGNED




--- Comment #1 from Sebastian Sauer <mail dipe org>  2008-10-03 08:31:05 ---
Hi Jan,

yes, that would be really more comfortable. The problem with changing it from
string to datetime would be, that it changes the behavior and would break
existing scripts/solutions that relay on the current implementation.

In fact the work to return and take python's datetime is already done (see the
commented out QDateTime code in
http://websvn.kde.org/trunk/KDE/kdebindings/python/krosspython/pythonvariant.h?view=markup
and works fine. But cause of the requirment to don't change prev behavior and
existing scripts, it's disabled and not used.

Well, it may an idea to introduce some kind of switch to let consumers optional
enable it explicit. Not sure there how that could be done but guess it would be
the only way how it can be done :-/


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kdelibs-bugs mailing list