Author: reinhard
Date: 2006-09-14 10:47:01 -0500 (Thu, 14 Sep 2006)
New Revision: 8689
Modified:
trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Fixed traceback when button is bound to a block.
Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py 2006-09-14 15:24:08 UTC (rev
8688)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py 2006-09-14 15:47:01 UTC (rev
8689)
@@ -910,7 +910,8 @@
# graft in the sloppy query stuff if needed
for block in maxList:
for entry in block._entryList:
- if hasattr (entry._field, 'sloppyQuery') and \
+ if entry._type == 'GFEntry' and \
+ hasattr (entry._field, 'sloppyQuery') and \
block.__query_values.has_key (entry._field):
block.__query_values [entry._field] = "%" + \
"%".join (list (block.__query_values [entry._field])) + "%"
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue