connectors/PYRO/__init__.py
changeset 411 8261c8f1e365
parent 399 77e23bf04c33
child 446 1edde533db19
--- a/connectors/PYRO/__init__.py	Thu Oct 08 11:09:01 2009 +0200
+++ b/connectors/PYRO/__init__.py	Thu Oct 08 11:26:40 2009 +0200
@@ -118,6 +118,13 @@
                 return None,None
         GetTraceVariables = PyroCatcher(_PyroGetTraceVariables,(None,None))
 
+        def _PyroPLCIsStarting(self):
+            """
+            for safe use in from debug thread, must use the copy
+            """
+            return self.RemotePLCObjectProxyCopy is not None and self.RemotePLCObjectProxyCopy.GetPLCstatus() == "Starting"
+        PLCIsStarting = PyroCatcher(_PyroPLCIsStarting,False)
+        
         def __getattr__(self, attrName):
             member = self.__dict__.get(attrName, None)
             if member is None: