[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/designer/src DataSourceEditor.py RuntimeSe...
From: |
Jason Cater |
Subject: |
gnue/designer/src DataSourceEditor.py RuntimeSe... |
Date: |
Wed, 16 Jan 2002 15:18:18 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/01/16 15:18:16
Modified files:
designer/src : DataSourceEditor.py RuntimeSettings.py
Log message:
fixed initial refresh problem in datasource editor; changed
RuntimeSettings to sort entries written to file to make it easier to debug
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/DataSourceEditor.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/designer/src/RuntimeSettings.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
Patches:
Index: gnue/designer/src/DataSourceEditor.py
diff -c gnue/designer/src/DataSourceEditor.py:1.7
gnue/designer/src/DataSourceEditor.py:1.8
*** gnue/designer/src/DataSourceEditor.py:1.7 Wed Jan 16 14:52:00 2002
--- gnue/designer/src/DataSourceEditor.py Wed Jan 16 15:18:16 2002
***************
*** 75,86 ****
instance.rootObject.walk (self.initialInventory)
instance.rootObject.walk (self.inventoryObject)
- self.splitter.SetSize(self.GetSize())
-
EVT_LIST_ITEM_SELECTED(self, self.list.GetId(), self.OnDSSelected)
self.onSetCurrentObject(self.current, "")
self.finalized = 0
RuntimeSettings.registerRuntimeSettingHandler(self.instance, self)
--- 75,85 ----
instance.rootObject.walk (self.initialInventory)
instance.rootObject.walk (self.inventoryObject)
EVT_LIST_ITEM_SELECTED(self, self.list.GetId(), self.OnDSSelected)
self.onSetCurrentObject(self.current, "")
self.finalized = 0
+ self.splitter.SetSize(self.GetSize())
RuntimeSettings.registerRuntimeSettingHandler(self.instance, self)
***************
*** 208,214 ****
self.splitter.SetSashPosition(
RuntimeSettings.getint(
! self.runtime_section, 'sash', 100))
self.notebook.SetSelection(
RuntimeSettings.getint(
--- 207,213 ----
self.splitter.SetSashPosition(
RuntimeSettings.getint(
! self.runtime_section, 'sash', 100) or 100)
self.notebook.SetSelection(
RuntimeSettings.getint(
Index: gnue/designer/src/RuntimeSettings.py
diff -c gnue/designer/src/RuntimeSettings.py:1.7
gnue/designer/src/RuntimeSettings.py:1.8
*** gnue/designer/src/RuntimeSettings.py:1.7 Fri Jan 11 10:49:09 2002
--- gnue/designer/src/RuntimeSettings.py Wed Jan 16 15:18:16 2002
***************
*** 30,35 ****
--- 30,40 ----
import sys, os, ConfigParser
+ # TODO: Should this save into the Win32 registry if its available?????
+ # TODO: This is, after all, session-specific information and not
+ # TODO: user-settable configuration data.
+
+
if os.environ.has_key('HOME'):
try:
os.makedirs(os.environ['HOME']+'/.gnue')
***************
*** 77,85 ****
for h in instance._runtimes:
section, hash = h.saveRuntimeSettings()
if len(hash.keys()):
fh.write ("\n[%s]\n" % section)
! for key in hash.keys():
fh.write ("%s=%s\n" % (key, hash[key]))
fh.write("\n")
--- 82,93 ----
for h in instance._runtimes:
section, hash = h.saveRuntimeSettings()
+ keys = hash.keys()
+ keys.sort()
+
if len(hash.keys()):
fh.write ("\n[%s]\n" % section)
! for key in keys:
fh.write ("%s=%s\n" % (key, hash[key]))
fh.write("\n")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/designer/src DataSourceEditor.py RuntimeSe...,
Jason Cater <=