You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by aj...@apache.org on 2003/12/03 20:19:51 UTC
cvs commit: jakarta-gump/python/gump/utils __init__.py work.py
ajack 2003/12/03 11:19:51
Modified: python/gump/utils __init__.py work.py
Log:
Bug fixes for when time not set.
Revision Changes Path
1.8 +2 -0 jakarta-gump/python/gump/utils/__init__.py
Index: __init__.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/utils/__init__.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- __init__.py 3 Dec 2003 18:36:13 -0000 1.7
+++ __init__.py 3 Dec 2003 19:19:51 -0000 1.8
@@ -236,10 +236,12 @@
return elapsedString
def secsToDate(secs):
+ if -1 == secs: return 'Unset'
return time.strftime(setting.datetimeformat, \
time.localtime(secs))
def secsToTime(secs):
+ if -1 == secs: return 'Unset'
return time.strftime(setting.timeformat, \
time.localtime(secs))
1.5 +2 -0 jakarta-gump/python/gump/utils/work.py
Index: work.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/utils/work.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- work.py 3 Dec 2003 18:36:13 -0000 1.4
+++ work.py 3 Dec 2003 19:19:51 -0000 1.5
@@ -227,6 +227,7 @@
if not startSecs or item.getStartTimeSecs() < startSecs:
startSecs=item.getStartTimeSecs()
if startSecs: return startSecs
+ return -1
def getEndSecs(self):
endSecs=0
@@ -235,6 +236,7 @@
if not endSecs or item.getEndSecs() < endSecs:
endSecs=item.getEndSecs()
if endSecs: return endSecs
+ return -1
def getElapsedSecs(self):
elapsedSecs=0