44 def SetEditedElementText(self, tagname, text): |
44 def SetEditedElementText(self, tagname, text): |
45 file = open(self.FilePath, "w") |
45 file = open(self.FilePath, "w") |
46 file.write(text) |
46 file.write(text) |
47 file.close() |
47 file.close() |
48 |
48 |
49 def GetEditedElementText(self, tagname, debug = False): |
49 def GetEditedElementText(self, tagname, debug=False): |
50 if os.path.isfile(self.FilePath): |
50 if os.path.isfile(self.FilePath): |
51 file = open(self.FilePath, "r") |
51 file = open(self.FilePath, "r") |
52 text = file.read() |
52 text = file.read() |
53 file.close() |
53 file.close() |
54 return text |
54 return text |
55 return "" |
55 return "" |
56 |
56 |
57 def GetEditedElementInterfaceVars(self, tagname, tree=False, debug = False): |
57 def GetEditedElementInterfaceVars(self, tagname, tree=False, debug=False): |
58 return [] |
58 return [] |
59 |
59 |
60 def GetEditedElementType(self, tagname, debug = False): |
60 def GetEditedElementType(self, tagname, debug=False): |
61 return "program" |
61 return "program" |
62 |
62 |
63 def GetBlockType(self, type, inputs = None, debug = False): |
63 def GetBlockType(self, type, inputs=None, debug=False): |
64 return self.BaseController.GetBlockType(type, inputs, debug) |
64 return self.BaseController.GetBlockType(type, inputs, debug) |
65 |
65 |
66 def GetBlockTypes(self, tagname = "", debug = False): |
66 def GetBlockTypes(self, tagname="", debug=False): |
67 return self.BaseController.GetBlockTypes(tagname, debug) |
67 return self.BaseController.GetBlockTypes(tagname, debug) |
68 |
68 |
69 def GetDataTypes(self, tagname = "", basetypes = True, only_locatables = False, debug = False): |
69 def GetDataTypes(self, tagname="", basetypes=True, only_locatables=False, debug=False): |
70 return self.BaseController.GetDataTypes(tagname, basetypes, only_locatables, debug) |
70 return self.BaseController.GetDataTypes(tagname, basetypes, only_locatables, debug) |
71 |
71 |
72 def GetEnumeratedDataValues(self, debug = False): |
72 def GetEnumeratedDataValues(self, debug=False): |
73 return self.BaseController.GetEnumeratedDataValues(debug) |
73 return self.BaseController.GetEnumeratedDataValues(debug) |
74 |
74 |
75 def StartBuffering(self): |
75 def StartBuffering(self): |
76 pass |
76 pass |
77 |
77 |