[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8654 - in trunk/gnue-forms/src: . GFObjects
From: |
reinhard |
Subject: |
[gnue] r8654 - in trunk/gnue-forms/src: . GFObjects |
Date: |
Tue, 5 Sep 2006 15:38:40 -0500 (CDT) |
Author: reinhard
Date: 2006-09-05 15:38:39 -0500 (Tue, 05 Sep 2006)
New Revision: 8654
Modified:
trunk/gnue-forms/src/GFForm.py
trunk/gnue-forms/src/GFInstance.py
trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Removed unused event.
Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py 2006-09-05 20:27:09 UTC (rev 8653)
+++ trunk/gnue-forms/src/GFForm.py 2006-09-05 20:38:39 UTC (rev 8654)
@@ -1712,18 +1712,9 @@
None, None, []),
(u_("Recordnumber"), 'record', 'string',
result['record'], None, [])]
- self.goto_record(count)
- # -------------------------------------------------------------------------
+ self._currentBlock.goto_record(count)
- def goto_record(self, count):
- """
- Jumps to a given record in the current block.
- @param count: ordinal of the record
- """
- if self._currentBlock is not None:
- self._currentBlock.goto_record(count)
-
# -------------------------------------------------------------------------
def jump_records(self, count):
Modified: trunk/gnue-forms/src/GFInstance.py
===================================================================
--- trunk/gnue-forms/src/GFInstance.py 2006-09-05 20:27:09 UTC (rev 8653)
+++ trunk/gnue-forms/src/GFInstance.py 2006-09-05 20:38:39 UTC (rev 8654)
@@ -98,7 +98,6 @@
'requestLASTRECORD' : self.lastRecord,
'requestPREVRECORD' : self.prevRecord,
'requestNEXTRECORD' : self.nextRecord,
- 'requestRECORDNUMBER' : self.jumpToRecord,
'requestJUMPPROMPT' : self.requestJumpTo,
'requestJUMPRECORD' : self.jumpRecords,
'requestJUMPROWSUP' : self.jumpRowsUp,
@@ -667,16 +666,6 @@
# ---------------------------------------------------------------------------
- def jumpToRecord(self, event):
- """
- Called whenever an event source has requested that the form move to a
- specific record
- """
- count = abs(int(event.data)) - 1
- event._form.goto_record(count)
-
- # ---------------------------------------------------------------------------
-
def jumpRecords(self, event):
"""
Jump a specified number of records forward or backward.
Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py 2006-09-05 20:27:09 UTC (rev
8653)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py 2006-09-05 20:38:39 UTC (rev
8654)
@@ -467,7 +467,7 @@
if position != self.__visibleStart:
self.__scrolling = True
try:
- self.jumpRecords (position - self.__visibleStart)
+ self.jump_records (position - self.__visibleStart)
finally:
self.__scrolling = False
else:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8654 - in trunk/gnue-forms/src: . GFObjects,
reinhard <=