connectors/PYRO/__init__.py
changeset 2416 1ca207782dde
parent 2010 bb9c28bd204f
child 2418 5587c490a070
equal deleted inserted replaced
2415:f7d8891fe708 2416:1ca207782dde
    34 import Pyro
    34 import Pyro
    35 import Pyro.core
    35 import Pyro.core
    36 import Pyro.util
    36 import Pyro.util
    37 from Pyro.errors import PyroError
    37 from Pyro.errors import PyroError
    38 
    38 
       
    39 from runtime import PlcStatus
    39 
    40 
    40 service_type = '_PYRO._tcp.local.'
    41 service_type = '_PYRO._tcp.local.'
    41 # this module attribute contains a list of DNS-SD (Zeroconf) service types
    42 # this module attribute contains a list of DNS-SD (Zeroconf) service types
    42 # supported by this connector confnode.
    43 # supported by this connector confnode.
    43 #
    44 #
   140         return None
   141         return None
   141 
   142 
   142     _special_return_funcs = {
   143     _special_return_funcs = {
   143         "StartPLC": False,
   144         "StartPLC": False,
   144         "GetTraceVariables": ("Broken", None),
   145         "GetTraceVariables": ("Broken", None),
   145         "GetPLCstatus": ("Broken", None),
   146         "GetPLCstatus": (PlcStatus.Broken, None),
   146         "RemoteExec": (-1, "RemoteExec script failed!")
   147         "RemoteExec": (-1, "RemoteExec script failed!")
   147     }
   148     }
   148 
   149 
   149     class PyroProxyProxy(object):
   150     class PyroProxyProxy(object):
   150         """
   151         """