[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7045 - in trunk/gnue-forms: doc src/GFObjects
From: |
jamest |
Subject: |
[gnue] r7045 - in trunk/gnue-forms: doc src/GFObjects |
Date: |
Fri, 18 Feb 2005 14:00:01 -0600 (CST) |
Author: jamest
Date: 2005-02-18 14:00:00 -0600 (Fri, 18 Feb 2005)
New Revision: 7045
Modified:
trunk/gnue-forms/doc/Developers-Guide.sxw
trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
fix defaultToLast so that default values commit properly
minor change in doc
Modified: trunk/gnue-forms/doc/Developers-Guide.sxw
===================================================================
(Binary files differ)
Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py 2005-02-18 19:59:10 UTC (rev
7044)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py 2005-02-18 20:00:00 UTC (rev
7045)
@@ -528,6 +528,16 @@
self._resultSet.setRecord(self._precommitRecord)
+ # Step thru all the records looking for records with uncommited
+ # changes that had default values set. If one is found then those
+ # fields are reset to their current values *with* modification tracking
+ # on. The default population on new records is to set the value without
+ # marking the record as modified which prevents their value from being
saved.
+ for record in self._resultSet._cachedRecords:
+ if record.isPending():
+ for field in self._lastValues.keys():
+ record.setField(field, record.getField(field), 1)
+
# Backstep thru the record adjusting for any prior records that
# will be deleted. Keeps the record postition properly adjusted
# during deletes.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7045 - in trunk/gnue-forms: doc src/GFObjects,
jamest <=