[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8651 - trunk/gnue-forms/src
From: |
reinhard |
Subject: |
[gnue] r8651 - trunk/gnue-forms/src |
Date: |
Mon, 4 Sep 2006 17:22:55 -0500 (CDT) |
Author: reinhard
Date: 2006-09-04 17:22:54 -0500 (Mon, 04 Sep 2006)
New Revision: 8651
Modified:
trunk/gnue-forms/src/GFForm.py
Log:
Use new GFBlock.get_record_status() function to find out status of current
block.
Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py 2006-09-04 22:13:44 UTC (rev 8650)
+++ trunk/gnue-forms/src/GFForm.py 2006-09-04 22:22:54 UTC (rev 8651)
@@ -664,17 +664,20 @@
def update_record_status(self):
- if self._currentBlock is not None:
- if self._currentBlock._resultSet.current.isDeleted():
- status = 'DEL'
- elif self._currentBlock._resultSet.current.isPending():
- status = 'MOD'
- elif self._currentBlock.mode == 'query':
- status = 'QRY'
- else:
- status = 'OK'
+ if self._currentBlock is None:
+ status = ''
+ elif self._currentBlock.mode == 'query':
+ status = 'QRY'
+ else:
+ status = {
+ 'empty': 'NEW',
+ 'inserted': 'MOD',
+ 'void': 'DEL',
+ 'clean': 'OK',
+ 'modified': 'MOD',
+ 'deleted': 'DEL'}[self._currentBlock.get_record_status()]
- self.__update_status(record_status=status)
+ self.__update_status(record_status=status)
# -------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8651 - trunk/gnue-forms/src,
reinhard <=