Update of /cvsroot/jtoolkit/jToolkit/data
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5142
Modified Files:
dates.py
Log Message:
added trap for AttributeError in pywintypes...
note that this may cause the error where every day comes out as Sunday to appear again... if using an older version of the Python Windows extensions...
See https://sourceforge.net/tracker/?func=detail&atid=551956&aid=808465&group_id=78018 fix for PyTime.Format
This is included from build 160 onwards...
The error will only occur if:
1) using an older build that has the error
2) an error occurs when importing pywintypes (which can be patched to remove the error)
Index: dates.py
===================================================================
RCS file: /cvsroot/jtoolkit/jToolkit/data/dates.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** dates.py 9 Feb 2004 13:29:13 -0000 1.7
--- dates.py 9 Feb 2004 13:48:20 -0000 1.8
***************
*** 39,42 ****
--- 39,45 ----
except ImportError:
errortimetype = None
+ except AttributeError:
+ # TODO: write an error message - this means that pywintypes needs to be patched for __file__ AttributeError
+ errortimetype = None
date = mxDateTime.DateTime
|