Author: reinhard
Date: 2005-08-12 09:46:55 -0500 (Fri, 12 Aug 2005)
New Revision: 7828
Modified:
trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Still return True on GFBlock.isPending() if the block has been saved but the
transaction has not yet been committed.
Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py 2005-08-12 13:18:37 UTC (rev
7827)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py 2005-08-12 14:46:55 UTC (rev
7828)
@@ -67,6 +67,9 @@
self._fieldMap = {}
self._fieldList = []
+ # True if the block has been saved but the transaction has not yet been
+ # committed. The block will still return True on isPending().
+
#
# Trigger exposure
#
@@ -552,6 +555,9 @@
if not self._recordCount:
self.newRecord()
+ # The block is not uncommitted any more
+ self.__uncommitted = False
+
self.mode='normal'
@@ -692,6 +698,7 @@
def callFunction (self, name, parameters):
try:
+ self.__uncommitted = True
self._dataSourceLink.postAll ()
res = self._resultSet.current.call (name, parameters)
self._dataSourceLink.requeryAll (False)
@@ -707,6 +714,7 @@
def updateCurrentRecordSet (self):
try:
+ self.__uncommitted = True
self._dataSourceLink.postAll ()
self._dataSourceLink.requeryAll (False)
finally:
_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue