1 |
import fraggleParserXML |
import fraggleParserXML |
2 |
|
|
3 |
|
def create(parent): |
4 |
|
return fraggleCtlPreferences(parent) |
5 |
|
|
6 |
class fraggleCtlPreferences: |
class fraggleCtlPreferences: |
7 |
|
|
8 |
def __init_fraggle_xml__(): |
def __init_fraggle_xml__(self): |
9 |
self.fraggleXML = fraggleParserXML.create() |
self.fraggleXML = fraggleParserXML.create(self) |
10 |
|
|
11 |
|
|
12 |
def __init__(self,parent): |
def __init__(self,parent): |
16 |
#def savePrefs(): |
#def savePrefs(): |
17 |
|
|
18 |
|
|
|
def setConfig(username,password,url,retrieval): |
|
|
configList = [username,password,url,retrieval) |
|
|
|
|
19 |
|
def setConfig(self,username,password,url,retrieval): |
20 |
|
self.configList = {'username': username,'password': password,'url': url,'retrieval': retrieval} |
21 |
|
|
22 |
|
def getConfig(self): |
23 |
|
return self.configList |
24 |
|
|
25 |
|
def saveConfig(self): |
26 |
|
self.fraggleXML.marshalXML(self.configList,"/home/xabbu/test.xml") |