connectors/PYRO/__init__.py
changeset 2538 2b75389575df
parent 2537 eb4a4cc41914
child 2543 2befed4d6ca8
equal deleted inserted replaced
2537:eb4a4cc41914 2538:2b75389575df
    74     try:
    74     try:
    75         RemotePLCObjectProxy = Pyro.core.getAttrProxyForURI(schemename + "://" + location + "/PLCObject")
    75         RemotePLCObjectProxy = Pyro.core.getAttrProxyForURI(schemename + "://" + location + "/PLCObject")
    76     except Exception as e:
    76     except Exception as e:
    77         confnodesroot.logger.write_error(
    77         confnodesroot.logger.write_error(
    78             _("Connection to {loc} failed with exception {ex}\n").format(
    78             _("Connection to {loc} failed with exception {ex}\n").format(
    79                 loc=location, exo=str(e)))
    79                 loc=location, ex=str(e)))
    80         return None
    80         return None
    81 
    81 
    82     RemotePLCObjectProxy.adapter.setTimeout(60)
    82     RemotePLCObjectProxy.adapter.setTimeout(60)
    83 
    83 
    84     def PyroCatcher(func, default=None):
    84     def PyroCatcher(func, default=None):