--- nfo/projects/netfraggle/bin/fraggleCtlPreferences.py 2004/08/25 18:18:50 1.3 +++ nfo/projects/netfraggle/bin/fraggleCtlPreferences.py 2004/08/25 21:43:53 1.4 @@ -12,6 +12,8 @@ self.fraggleXML = fraggleParserXML.create(self) + + def __init__(self,parent): self.__init_fraggle_xml__() @@ -25,9 +27,14 @@ def getConfig(self): return self.configList + + def loadConfig(self,inputLocation): + self.configList = self.fraggleXML.unmarshalXML(inputLocation) + + def saveConfig(self): - #self.fraggleXML.marshalXML(self.configList,"/home/xabbu/test.xml") engine = FraggleEngine() prefsfile = os.path.join(engine.getDefaultDir(), 'prefs.xml') self.fraggleXML.marshalXML(self.configList, prefsfile) +