[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r6701 - trunk/gnue-forms/src/GFObjects
From: |
reinhard |
Subject: |
r6701 - trunk/gnue-forms/src/GFObjects |
Date: |
Thu, 18 Nov 2004 08:30:32 -0600 (CST) |
Author: reinhard
Date: 2004-11-18 08:30:31 -0600 (Thu, 18 Nov 2004)
New Revision: 6701
Modified:
trunk/gnue-forms/src/GFObjects/GFField.py
Log:
Do not call setField from the resultset listener; it has already been called by
the entry at this point. This also fixes blocks containing dropdowns being
marked as dirty right after the query.
Modified: trunk/gnue-forms/src/GFObjects/GFField.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFField.py 2004-11-18 14:07:31 UTC (rev
6700)
+++ trunk/gnue-forms/src/GFObjects/GFField.py 2004-11-18 14:30:31 UTC (rev
6701)
@@ -400,14 +400,11 @@
# This gets called by the (FK) resultSet whenever the current record changes.
# We want the field to follow the selection then.
def currentRecordMoved (self):
- if self._block._resultSet: # make sure we don't call setValue too early
- if self.__fk_resultSet.current:
- self.setValue (self.__fk_resultSet.current [self.fk_key])
- else:
- # Empty item selected
- self.setValue (None)
+ # The entry causing the fk record change has already posted a setValue for
+ # this field; our current record already contians the correct data. All we
+ # have to do is tell our UI to update.
+ self._block._form.updateUIEntry(self)
-
# This gets called by the block whenever the current record of our own
# resultset changes. We want the fk resultset to follow.
def gotNewCurrentRecord (self):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r6701 - trunk/gnue-forms/src/GFObjects,
reinhard <=