[pywin32-checkins] pywin32/com/win32com/src oleargs.cpp,1.30,1.31
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-10-20 22:32:36
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11001 Modified Files: oleargs.cpp Log Message: Allow a datetime object to be used directly as COM object arguments, rather than forcing you to call pythoncom.MakeTime() on the datetime object first. Index: oleargs.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/oleargs.cpp,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** oleargs.cpp 27 Jun 2005 11:02:41 -0000 1.30 --- oleargs.cpp 20 Oct 2005 22:32:28 -0000 1.31 *************** *** 148,152 **** V_ERROR(var) = DISP_E_PARAMNOTFOUND; } ! else if (PyTime_Check(obj)) { V_VT(var) = VT_DATE; --- 148,152 ---- V_ERROR(var) = DISP_E_PARAMNOTFOUND; } ! else if (PyTime_Check(obj) || PyObject_HasAttrString(obj, "timetuple")) { V_VT(var) = VT_DATE; |