equal
deleted
inserted
replaced
128 |
128 |
129 def _PyroGetPLCstatus(self): |
129 def _PyroGetPLCstatus(self): |
130 return RemotePLCObjectProxy.GetPLCstatus() |
130 return RemotePLCObjectProxy.GetPLCstatus() |
131 GetPLCstatus = PyroCatcher(_PyroGetPLCstatus, "Broken") |
131 GetPLCstatus = PyroCatcher(_PyroGetPLCstatus, "Broken") |
132 |
132 |
|
133 def _PyroRemoteExec(self, script, **kwargs): |
|
134 return RemotePLCObjectProxy.RemoteExec(script, **kwargs) |
|
135 RemoteExec = PyroCatcher(_PyroRemoteExec, (-1, "RemoteExec script failed!")) |
|
136 |
133 def __getattr__(self, attrName): |
137 def __getattr__(self, attrName): |
134 member = self.__dict__.get(attrName, None) |
138 member = self.__dict__.get(attrName, None) |
135 if member is None: |
139 if member is None: |
136 def my_local_func(*args,**kwargs): |
140 def my_local_func(*args,**kwargs): |
137 return RemotePLCObjectProxy.__getattr__(attrName)(*args,**kwargs) |
141 return RemotePLCObjectProxy.__getattr__(attrName)(*args,**kwargs) |