[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-forms/src/GFObjects GFBlock.py
From: |
James Thompson |
Subject: |
gnue-forms/src/GFObjects GFBlock.py |
Date: |
Thu, 18 Sep 2003 14:04:28 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue-forms
Branch:
Changes by: James Thompson <address@hidden> 03/09/18 14:04:28
Modified files:
src/GFObjects : GFBlock.py
Log message:
fix for replace * w/ % when dealing with forms assigned numeric values
forms now does = condition unless wildcards detected.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-forms/src/GFObjects/GFBlock.py.diff?tr1=1.88&tr2=1.89&r1=text&r2=text
Patches:
Index: gnue-forms/src/GFObjects/GFBlock.py
diff -c gnue-forms/src/GFObjects/GFBlock.py:1.88
gnue-forms/src/GFObjects/GFBlock.py:1.89
*** gnue-forms/src/GFObjects/GFBlock.py:1.88 Fri Sep 5 15:33:58 2003
--- gnue-forms/src/GFObjects/GFBlock.py Thu Sep 18 14:04:28 2003
***************
*** 572,584 ****
if entry._bound and entry.isQueryable() and len(str(val)):
if entry.typecast == 'text':
if block._convertAstericksToPercent:
try:
! val = val.replace('*','%')
except ValueError:
pass
! print val
! ## GDebug.printMesg(5,'Adding conditional LIKE (%s like %s)' %
(entry.field, val))
! conditionLike[entry.field] = val
else:
## GDebug.printMesg(5,'Adding conditional AND (%s=%s)' %
(entry.field, val))
conditionEq[entry.field] = val
--- 572,587 ----
if entry._bound and entry.isQueryable() and len(str(val)):
if entry.typecast == 'text':
if block._convertAstericksToPercent:
+ print val
try:
! val = str(val).replace('*','%')
except ValueError:
pass
! print val, val.find('%'), val.find('_')
! if (val.find('%') >= 0 or val.find('_') >= 0):
! conditionLike[entry.field] = val
! else:
! conditionEq[entry.field] = val
else:
## GDebug.printMesg(5,'Adding conditional AND (%s=%s)' %
(entry.field, val))
conditionEq[entry.field] = val
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue-forms/src/GFObjects GFBlock.py,
James Thompson <=