plugger.py
changeset 290 3bd617ae7a05
parent 288 7ee96191c476
child 292 a47081eb6cec
--- a/plugger.py	Fri Jan 09 17:08:31 2009 +0100
+++ b/plugger.py	Wed Jan 14 16:41:14 2009 +0100
@@ -313,6 +313,12 @@
         else:
             return self
 
+    def GetChildByType(self, TypeName):
+        if TypeName:
+            return self._GetChildBySomething("PlugType", TypeName)
+        else:
+            return self
+
     def GetChildByIECLocation(self, Location):
         if Location:
             return self._GetChildBySomething("IEC_Channel", Location)
@@ -668,10 +674,9 @@
     </xsd:schema>
     """
 
-    def __init__(self, frame, logger, runtime_port):
+    def __init__(self, frame, logger):
         PLCControler.__init__(self)
 
-        self.runtime_port = runtime_port
         self.MandatoryParams = None
         self.AppFrame = frame
         self.logger = logger