equal
deleted
inserted
replaced
58 |
58 |
59 #-------------------------------------------------- |
59 #-------------------------------------------------- |
60 # Location Tree Helper |
60 # Location Tree Helper |
61 #-------------------------------------------------- |
61 #-------------------------------------------------- |
62 |
62 |
|
63 |
63 def GetSlaveLocationTree(slave_node, current_location, name): |
64 def GetSlaveLocationTree(slave_node, current_location, name): |
64 entries = [] |
65 entries = [] |
65 for index, subindex, size, entry_name in slave_node.GetMapVariableList(): |
66 for index, subindex, size, entry_name in slave_node.GetMapVariableList(): |
66 subentry_infos = slave_node.GetSubentryInfos(index, subindex) |
67 subentry_infos = slave_node.GetSubentryInfos(index, subindex) |
67 typeinfos = slave_node.GetEntryInfos(subentry_infos["type"]) |
68 typeinfos = slave_node.GetEntryInfos(subentry_infos["type"]) |
83 } |
84 } |
84 |
85 |
85 #-------------------------------------------------- |
86 #-------------------------------------------------- |
86 # SLAVE |
87 # SLAVE |
87 #-------------------------------------------------- |
88 #-------------------------------------------------- |
|
89 |
88 |
90 |
89 class _SlaveCTN(NodeManager): |
91 class _SlaveCTN(NodeManager): |
90 XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?> |
92 XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?> |
91 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
93 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
92 <xsd:element name="CanFestivalSlaveNode"> |
94 <xsd:element name="CanFestivalSlaveNode"> |
244 |
246 |
245 #-------------------------------------------------- |
247 #-------------------------------------------------- |
246 # MASTER |
248 # MASTER |
247 #-------------------------------------------------- |
249 #-------------------------------------------------- |
248 |
250 |
|
251 |
249 class MiniNodeManager(NodeManager): |
252 class MiniNodeManager(NodeManager): |
250 |
253 |
251 def __init__(self, parent, filepath, fullname): |
254 def __init__(self, parent, filepath, fullname): |
252 NodeManager.__init__(self) |
255 NodeManager.__init__(self) |
253 |
256 |
270 |
273 |
271 def GetBufferState(self): |
274 def GetBufferState(self): |
272 return self.GetCurrentBufferState() |
275 return self.GetCurrentBufferState() |
273 |
276 |
274 ConfNodeMethods = [] |
277 ConfNodeMethods = [] |
|
278 |
275 |
279 |
276 class _NodeManager(NodeManager): |
280 class _NodeManager(NodeManager): |
277 |
281 |
278 def __init__(self, parent, *args, **kwargs): |
282 def __init__(self, parent, *args, **kwargs): |
279 NodeManager.__init__(self, *args, **kwargs) |
283 NodeManager.__init__(self, *args, **kwargs) |
285 def GetCurrentNodeName(self): |
289 def GetCurrentNodeName(self): |
286 return self.Parent.CTNName() |
290 return self.Parent.CTNName() |
287 |
291 |
288 def GetCurrentNodeID(self): |
292 def GetCurrentNodeID(self): |
289 return self.Parent.CanFestivalNode.getNodeId() |
293 return self.Parent.CanFestivalNode.getNodeId() |
|
294 |
290 |
295 |
291 class _NodeListCTN(NodeList): |
296 class _NodeListCTN(NodeList): |
292 XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?> |
297 XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?> |
293 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
298 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
294 <xsd:element name="CanFestivalNode"> |
299 <xsd:element name="CanFestivalNode"> |
456 def LoadNext(self): |
461 def LoadNext(self): |
457 self.Manager.LoadCurrentNext() |
462 self.Manager.LoadCurrentNext() |
458 |
463 |
459 def GetBufferState(self): |
464 def GetBufferState(self): |
460 return self.Manager.GetCurrentBufferState() |
465 return self.Manager.GetCurrentBufferState() |
|
466 |
461 |
467 |
462 class RootClass: |
468 class RootClass: |
463 XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?> |
469 XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?> |
464 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
470 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
465 <xsd:element name="CanFestivalInstance"> |
471 <xsd:element name="CanFestivalInstance"> |