[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8825 - trunk/gnue-forms/src
From: |
reinhard |
Subject: |
[gnue] r8825 - trunk/gnue-forms/src |
Date: |
Tue, 17 Oct 2006 12:03:32 -0500 (CDT) |
Author: reinhard
Date: 2006-10-17 12:03:32 -0500 (Tue, 17 Oct 2006)
New Revision: 8825
Modified:
trunk/gnue-forms/src/GFForm.py
Log:
Run focus-out triggers also before closing the form; run focus-out and focus-in
triggers before and after committing a record.
Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py 2006-10-17 16:59:36 UTC (rev 8824)
+++ trunk/gnue-forms/src/GFForm.py 2006-10-17 17:03:32 UTC (rev 8825)
@@ -1257,10 +1257,16 @@
self.endEditing()
+ if self._currentBlock is not None:
+ self._currentBlock.focus_out()
+
try:
# Do the actual work
self.execute_commit()
finally:
+
+ if self._currentBlock is not None:
+ self._currentBlock.focus_in()
self.beginEditing()
# -------------------------------------------------------------------------
@@ -1624,12 +1630,11 @@
def execute_close(self):
+ if self._currentBlock is not None:
+ self._currentBlock._focus_out()
+
self.processTrigger('Pre-Exit', ignoreAbort = False)
- if self._currentBlock is not None:
- if self._currentBlock.autoCommit and not self.isSaved():
- self.execute_commit()
-
if not self.__must_save():
return
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8825 - trunk/gnue-forms/src,
reinhard <=