[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/common/src GDataFormatter.py
From: |
Jason Cater |
Subject: |
gnue/common/src GDataFormatter.py |
Date: |
Sun, 22 Dec 2002 20:22:21 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/12/22 20:22:21
Modified files:
common/src : GDataFormatter.py
Log message:
added basic date formatting (temp hackery) for reports support
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/common/src/GDataFormatter.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: gnue/common/src/GDataFormatter.py
diff -c gnue/common/src/GDataFormatter.py:1.1
gnue/common/src/GDataFormatter.py:1.2
*** gnue/common/src/GDataFormatter.py:1.1 Tue May 29 17:49:47 2001
--- gnue/common/src/GDataFormatter.py Sun Dec 22 20:22:21 2002
***************
*** 29,40 ****
# HISTORY:
#
!
! def applyFormatting (value, mask):
# This obviously doesn't do anything with the mask yet
# Just returns a string
! if value == None:
! return ""
! else:
return "%s" % value
--- 29,42 ----
# HISTORY:
#
+ from mx.DateTime import DateTime
! def applyFormatting (value, mask):
# This obviously doesn't do anything with the mask yet
# Just returns a string
! if value == None:
! return ""
! else:
! if mask and type(value) == type(DateTime)
! return value.strftime(mask)
return "%s" % value
- gnue/common/src GDataFormatter.py,
Jason Cater <=