[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8735 - trunk/gnue-forms/src
From: |
reinhard |
Subject: |
[gnue] r8735 - trunk/gnue-forms/src |
Date: |
Tue, 10 Oct 2006 14:20:17 -0500 (CDT) |
Author: reinhard
Date: 2006-10-10 14:20:16 -0500 (Tue, 10 Oct 2006)
New Revision: 8735
Modified:
trunk/gnue-forms/src/GFForm.py
trunk/gnue-forms/src/GFInstance.py
Log:
Initialize UI earlier and build UI form before the result sets are built. This
way, the first build of the result sets automatically fills in all the widgets.
Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py 2006-10-10 18:49:29 UTC (rev 8734)
+++ trunk/gnue-forms/src/GFForm.py 2006-10-10 19:20:16 UTC (rev 8735)
@@ -261,6 +261,9 @@
Called automatically during phaseInit(). It must happen after all
children have init'ed.
"""
+ # build the UI form
+ self._instance._uiinstance.buildForm(self, self.name)
+
# create the first records
for key in self._datasourceDictionary.keys():
if not self._datasourceDictionary[key].hasMaster():
@@ -834,7 +837,8 @@
assert gDebug(5, "Updating entries old: %s, new: %s" % \
(oldEntry, self._currentEntry))
- self.dispatchEvent('updateENTRY', oldEntry, _form=self)
+ if oldEntry is not None:
+ self.dispatchEvent('updateENTRY', oldEntry, _form=self)
self.dispatchEvent('updateENTRY', self._currentEntry, _form=self)
self.__focus_triggers('FocusIn', fieldChange, pageChange,
Modified: trunk/gnue-forms/src/GFInstance.py
===================================================================
--- trunk/gnue-forms/src/GFInstance.py 2006-10-10 18:49:29 UTC (rev 8734)
+++ trunk/gnue-forms/src/GFInstance.py 2006-10-10 19:20:16 UTC (rev 8735)
@@ -259,6 +259,9 @@
assert gEnter (4)
+ assert gDebug (4, "Initializing user interface driver object")
+ self._uiinstance.initialize ()
+
main_form = self._formsDictionary ['__main__']
# Load standard menu and merge it into main form
@@ -298,15 +301,6 @@
formObject.phaseInit ()
-
- assert gDebug (4, "Initializing user interface driver object")
- self._uiinstance.initialize ()
-
- # Build the UIs for all the forms
- assert gDebug (4, "Building forms")
- for dialog in self._formsDictionary.keys ():
- self.buildForm (dialog)
-
# Bring up the main form
if main_form.style == 'dialog':
# we assume a dialog to be modal by definition and that program execution
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8735 - trunk/gnue-forms/src,
reinhard <=