svghmi/svghmi_server.py
branchpython3
changeset 3750 f62625418bff
parent 3661 62860665fa94
child 3864 3e434edfbfdf
equal deleted inserted replaced
3749:fda6c1a37662 3750:f62625418bff
     3 
     3 
     4 # This file is part of Beremiz
     4 # This file is part of Beremiz
     5 # Copyright (C) 2019: Edouard TISSERANT
     5 # Copyright (C) 2019: Edouard TISSERANT
     6 # See COPYING file for copyrights details.
     6 # See COPYING file for copyrights details.
     7 
     7 
     8 from __future__ import absolute_import
     8 
     9 import errno
     9 import errno
    10 from threading import RLock, Timer
    10 from threading import RLock, Timer
    11 import os, time
    11 import os, time
    12 
    12 
    13 try:
    13 try:
   271             else:
   271             else:
   272                 # this happens when finishing
   272                 # this happens when finishing
   273                 break
   273                 break
   274 
   274 
   275 def AddPathToSVGHMIServers(path, factory, *args, **kwargs):
   275 def AddPathToSVGHMIServers(path, factory, *args, **kwargs):
   276     for k,v in svghmi_servers.iteritems():
   276     for k,v in svghmi_servers.items():
   277         svghmi_root, svghmi_listener, path_list = v
   277         svghmi_root, svghmi_listener, path_list = v
   278         svghmi_root.putChild(path, factory(*args, **kwargs))
   278         svghmi_root.putChild(path, factory(*args, **kwargs))
   279 
   279 
   280 # Called by PLCObject at start
   280 # Called by PLCObject at start
   281 def _runtime_00_svghmi_start():
   281 def _runtime_00_svghmi_start():