[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8657 - trunk/gnue-forms/src/GFObjects
From: |
reinhard |
Subject: |
[gnue] r8657 - trunk/gnue-forms/src/GFObjects |
Date: |
Wed, 6 Sep 2006 04:39:19 -0500 (CDT) |
Author: reinhard
Date: 2006-09-06 04:39:18 -0500 (Wed, 06 Sep 2006)
New Revision: 8657
Modified:
trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Reordered trigger functions.
Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py 2006-09-06 09:13:27 UTC (rev
8656)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py 2006-09-06 09:39:18 UTC (rev
8657)
@@ -115,81 +115,43 @@
self._triggerGlobal = 1
self._triggerFunctions = {
- 'clear': {
- 'function' : self.processClear,
- 'description': ''},
- 'getResultSet': {
- 'function' : self.getResultSet,
- 'description': ''},
- 'commit': {
- 'function' : self.commit,
- 'description': ''},
- 'newRecord': {
- 'function' : self.new_record,
- 'description': ''},
- 'deleteRecord': {
- 'function' : self.deleteRecord,
- 'description': ''},
- 'duplicateRecord': {
- 'function': self.duplicateRecord,
- 'description': 'Duplicates the current (non-empty) record into a ' \
- 'new record.'},
- 'isEmpty': {
- 'function' : self.isEmpty,
- 'description': 'Returns True if block is empty.'},
- 'isSaved': {
- 'function' : self.isSaved,
- 'description': 'Depriciated: Returns True if block contains no ' \
- 'modified records.'},
- 'isPending': {
- 'function' : self.isPending,
- 'description': 'Returns True if block contains modified records.'},
+ # Record status
+ 'get_record_status': {'function': self.get_record_status},
+ 'isEmpty': {'function': self.isEmpty}, # deprecated?
+ 'isSaved': {'function': self.isSaved}, # deprecated?
+ 'isPending': {'function': self.isPending}, # deprecated?
- 'firstRecord': {
- 'function' : self.first_record,
- 'description': 'Navigates the block to the first record it contains.'},
- 'prevRecord': {
- 'function' : self.prev_record,
- 'description': 'Navigates the block to the previous record in ' \
- 'sequence.'},
- 'nextRecord': {
- 'function' : self.next_record,
- 'description': 'Navigates the block to the next record in sequence.'},
- 'lastRecord': {
- 'function' : self.last_record,
- 'description': 'Navigates the block to the last record it contains.'},
- 'gotoRecord': {
- 'function' : self.goto_record,
- 'description': 'Navigates the block to the specified record number.'},
- 'jumpRecords': {
- 'function' : self.jump_records,
- 'description': 'Navigates the specified number of records.'},
- 'rollback': {
- 'function' : self.processRollback,
- 'description': 'Clears all records regardless of state from the
block'},
- 'initQuery': {
- 'function' : self.initQuery,
- 'description': 'Prepares the block for query input.'},
- 'copyQuery': {
- 'function' : self.copyQuery,
- 'description': 'Prepares the block for query input.'},
- 'cancelQuery': {
- 'function' : self.cancelQuery,
- 'description': 'Cancels query input.'},
- 'executeQuery': {
- 'function' : self.processQuery,
- 'description': 'Executes the current query.'},
- 'call': {
- 'function' : self.callFunction,
- 'description': 'Executes a function of the datasource'},
- 'update': {
- 'function' : self.updateCurrentRecordSet,
- 'description': ''},
- 'get_data': {
- 'function': self.get_data,
- 'description': 'Export current result set into a list of dicts'}
- }
+ # Record navigation
+ 'firstRecord': {'function': self.first_record},
+ 'prevRecord': {'function': self.prev_record},
+ 'nextRecord': {'function': self.next_record},
+ 'lastRecord': {'function': self.last_record},
+ 'gotoRecord': {'function': self.goto_record},
+ 'jumpRecords': {'function': self.jump_records},
+ # Record insertion and deletion
+ 'newRecord': {'function': self.new_record},
+ 'duplicateRecord': {'function': self.duplicateRecord},
+ 'deleteRecord': {'function': self.deleteRecord},
+ 'undeleteRecord': {'function': self.undeleteRecord},
+
+ # Queries
+ 'initQuery': {'function': self.initQuery},
+ 'copyQuery': {'function': self.copyQuery},
+ 'cancelQuery': {'function': self.cancelQuery},
+ 'executeQuery': {'function': self.processQuery},
+
+ # Transactions
+ 'commit': {'function': self.commit},
+ 'rollback': {'function': self.processRollback},
+ 'clear': {'function': self.processClear},
+
+ # Other stuff
+ 'call': {'function': self.callFunction},
+ 'update': {'function': self.updateCurrentRecordSet},
+ 'getResultSet': {'function': self.getResultSet},
+ 'get_data': {'function': self.get_data}}
+
self._triggerProperties = {
'parent': {'get': self.getParent},
'autoCommit': {'set': self.triggerSetAutoCommit,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8657 - trunk/gnue-forms/src/GFObjects,
reinhard <=