plugins/canfestival/canfestival.py
changeset 23 e007d9d466d7
parent 22 9a0c535c3272
child 24 585d5b387b6a
--- a/plugins/canfestival/canfestival.py	Fri Sep 07 10:19:04 2007 +0200
+++ b/plugins/canfestival/canfestival.py	Mon Sep 10 14:10:03 2007 +0200
@@ -27,7 +27,8 @@
 
     def __init__(self):
         manager = NodeManager()
-        NodeList.__init__(self, manager)
+        # TODO change netname when name change
+        NodeList.__init__(self, manager, self.BaseParams.getName())
         self.LoadProject(self.PlugPath())
 
     _View = None
@@ -35,9 +36,12 @@
         if not self._View:
             def _onclose():
                 self.View = None
-            self._View = _NetworkEdit()
+            self._View = _NetworkEdit(self.GetPlugRoot().AppFrame, self)
+            # TODO redefine BusId when IEC channel change
+            self._View.SetBusId(self.GetCurrentLocation())
             self._View._onclose = _onclose
-        return self.View
+            self._View.Show()
+
     PluginMethods = [("NetworkEdit",_OpenView)]
 
     def OnPlugClose(self):
@@ -88,7 +92,7 @@
 
     PlugChildsTypes = [("CanOpenNode",_NodeListPlug)]
     
-    def PlugGenerate_C(self, buildpath, current_location, locations):
+    def PlugGenerate_C(self, buildpath, current_location, locations, logger):
         return [],""