--- nfo/projects/netfraggle/bin/fraggleCtlPreferences.py 2004/08/25 16:56:59 1.2 +++ nfo/projects/netfraggle/bin/fraggleCtlPreferences.py 2004/08/25 21:43:53 1.4 @@ -1,4 +1,7 @@ +import os + import fraggleParserXML +from fraggleEngine import * def create(parent): return fraggleCtlPreferences(parent) @@ -9,6 +12,8 @@ self.fraggleXML = fraggleParserXML.create(self) + + def __init__(self,parent): self.__init_fraggle_xml__() @@ -22,5 +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") \ No newline at end of file + engine = FraggleEngine() + prefsfile = os.path.join(engine.getDefaultDir(), 'prefs.xml') + self.fraggleXML.marshalXML(self.configList, prefsfile) + +