39 def SetEditedElementText(self, tagname, text): |
39 def SetEditedElementText(self, tagname, text): |
40 file = open(self.FilePath, "w") |
40 file = open(self.FilePath, "w") |
41 file.write(text) |
41 file.write(text) |
42 file.close() |
42 file.close() |
43 |
43 |
44 def GetEditedElementText(self, tagname): |
44 def GetEditedElementText(self, tagname, debug = False): |
45 if os.path.isfile(self.FilePath): |
45 if os.path.isfile(self.FilePath): |
46 file = open(self.FilePath, "r") |
46 file = open(self.FilePath, "r") |
47 text = file.read() |
47 text = file.read() |
48 file.close() |
48 file.close() |
49 return text |
49 return text |
50 return "" |
50 return "" |
51 |
51 |
52 def GetEditedElementInterfaceVars(self, tagname): |
52 def GetEditedElementInterfaceVars(self, tagname, debug = False): |
53 return [] |
53 return [] |
54 |
54 |
55 def GetEditedElementType(self, tagname): |
55 def GetEditedElementType(self, tagname, debug = False): |
56 return "program" |
56 return "program" |
57 |
57 |
58 def GetBlockTypes(self, tagname = ""): |
58 def GetBlockTypes(self, tagname = "", debug = False): |
59 return [] |
59 return [] |
60 |
60 |
61 def GetEnumeratedDataValues(self): |
61 def GetEnumeratedDataValues(self, debug = False): |
62 return [] |
62 return [] |
63 |
63 |
64 def StartBuffering(self): |
64 def StartBuffering(self): |
65 pass |
65 pass |
66 |
66 |