runtime/NevowServer.py
changeset 1736 7e61baa047f0
parent 1682 496029f768d9
child 1740 b789b695b5c6
--- a/runtime/NevowServer.py	Mon Aug 14 22:30:41 2017 +0300
+++ b/runtime/NevowServer.py	Mon Aug 14 23:27:15 2017 +0300
@@ -36,6 +36,7 @@
 
 WorkingDir = None
 
+
 class PLCHMI(athena.LiveElement):
 
     initialised = False
@@ -46,16 +47,19 @@
     def HMIinitialisation(self):
         self.HMIinitialised(None)
 
+
 class DefaultPLCStartedHMI(PLCHMI):
     docFactory = loaders.stan(tags.div(render=tags.directive('liveElement'))[
                                             tags.h1["PLC IS NOW STARTED"],
                                             ])
 
+
 class PLCStoppedHMI(PLCHMI):
     docFactory = loaders.stan(tags.div(render=tags.directive('liveElement'))[
                                             tags.h1["PLC IS STOPPED"],
                                             ])
 
+
 class MainPage(athena.LiveElement):
     jsClass = u"WebInterface.PLC"
     docFactory = loaders.stan(tags.div(render=tags.directive('liveElement'))[
@@ -110,6 +114,7 @@
         for child in self.liveFragmentChildren[:]:
             child.detach()
 
+
 class WebInterface(athena.LivePage):
 
     docFactory = loaders.stan([tags.raw(xhtml_header),
@@ -173,6 +178,7 @@
         #print reason
         #print "We will be called back when the client disconnects"
 
+
 def RegisterWebsite(port):
     website = WebInterface()
     site = appserver.NevowSite(website)
@@ -182,6 +188,7 @@
     print _("HTTP interface port :"), port
     return website
 
+
 class statuslistener:
     def __init__(self, site):
         self.oldstate = None
@@ -194,5 +201,6 @@
             if action is not None: action ()
             self.oldstate = state
 
+
 def website_statuslistener_factory(site):
     return statuslistener(site).listen