[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9249 - trunk/gnue-forms/src/GFObjects
From: |
reinhard |
Subject: |
[gnue] r9249 - trunk/gnue-forms/src/GFObjects |
Date: |
Tue, 9 Jan 2007 16:00:17 -0600 (CST) |
Author: reinhard
Date: 2007-01-09 16:00:16 -0600 (Tue, 09 Jan 2007)
New Revision: 9249
Modified:
trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Force save before query() only if the queried block or one of its details has
pending changes.
Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py 2007-01-09 20:54:39 UTC (rev
9248)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py 2007-01-09 22:00:16 UTC (rev
9249)
@@ -644,7 +644,9 @@
# Now, do the query.
self._focus_out()
- if not self._form._must_save():
+ # We only have to save if the queried block or one of its details has
+ # pending changes, not if any other unrelated block is dirty.
+ if self.is_pending() and not self._form._must_save():
return False
self.__in_query = True
try:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9249 - trunk/gnue-forms/src/GFObjects,
reinhard <=