From: <bl...@us...> - 2003-03-19 06:40:50
|
Update of /cvsroot/pywebsvcs/zsi/ZSI In directory sc8-pr-cvs1:/tmp/cvs-serv26488 Modified Files: TCtimes.py Log Message: added call to pyobj.tuple prior to serialization. my guess is that the DateTime instance was at one point scriptable, but it no longer is. thus, in order to script it, you must split it into a tuple first Index: TCtimes.py =================================================================== RCS file: /cvsroot/pywebsvcs/zsi/ZSI/TCtimes.py,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- TCtimes.py 9 May 2002 16:21:54 -0000 1.6 +++ TCtimes.py 19 Mar 2003 06:40:45 -0000 1.7 @@ -106,11 +106,13 @@ pyobj = time.gmtime(pyobj) n = name or self.oname or ('E%x' % id(pyobj)) d = {} + pyobj = pyobj.tuple() if 1 in map(lambda x: x < 0, pyobj[0:6]): pyobj = map(abs, pyobj) d['neg'] = '-' else: d['neg'] = '' + d = { 'Y': pyobj[0], 'M': pyobj[1], 'D': pyobj[2], 'h': pyobj[3], 'm': pyobj[4], 's': pyobj[5], } val = self.format % d |