[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/common/src GDataObjects.py
From: |
Jason Cater |
Subject: |
gnue/common/src GDataObjects.py |
Date: |
Fri, 12 Apr 2002 00:59:01 -0400 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/04/12 00:58:59
Modified files:
common/src : GDataObjects.py
Log message:
cleanup
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/common/src/GDataObjects.py.diff?cvsroot=OldCVS&tr1=1.46&tr2=1.47&r1=text&r2=text
Patches:
Index: gnue/common/src/GDataObjects.py
diff -c gnue/common/src/GDataObjects.py:1.46
gnue/common/src/GDataObjects.py:1.47
*** gnue/common/src/GDataObjects.py:1.46 Fri Apr 12 00:46:03 2002
--- gnue/common/src/GDataObjects.py Fri Apr 12 00:58:58 2002
***************
*** 588,598 ****
return self._fields[field]
except KeyError:
try:
! # TODO: something odd here
! #GDebug.printMesg(0,'I should never run %s' % field)
! #print self._fields
return self._fields[string.lower(field)]
except KeyError:
return None
--- 588,605 ----
return self._fields[field]
except KeyError:
try:
!
! # TODO: When we're confident that
! # TODO: all field names are lowercase,
! # TODO: then this can be removed.
!
return self._fields[string.lower(field)]
except KeyError:
+ # If a field value has yet to be set
+ # (either from a query or via a setField),
+ # then _fields will not contain a key
+ # for the requested field even though
+ # the field name may still be valid.
return None