diff -r 433fd448dd31 -r d1083f580ca1 Beremiz_service.py --- a/Beremiz_service.py Wed Sep 16 14:06:50 2009 +0200 +++ b/Beremiz_service.py Mon Sep 21 11:56:55 2009 +0200 @@ -526,9 +526,9 @@ class PLCStoppedHMI(PLCHMI): docFactory = loaders.stan(tags.div(render=tags.directive('liveElement'))[ - tags.h1["PLC IS STOPPED"] + tags.h1["PLC IS STOPPED"], ]) - + class MainPage(athena.LiveElement): jsClass = u"WebInterface.PLC" docFactory = loaders.stan(tags.div(render=tags.directive('liveElement'))[ @@ -582,7 +582,7 @@ def detachFragmentChildren(self): for child in self.liveFragmentChildren[:]: child.detach() - + class WebInterface(athena.LivePage): docFactory = loaders.stan([tags.raw(xhtml_header), @@ -594,7 +594,7 @@ ]]]]) MainPage = MainPage() PLCHMI = PLCHMI - + def __init__(self, plcState=False, *a, **kw): super(WebInterface, self).__init__(*a, **kw) self.jsModules.mapping[u'WebInterface'] = util.sibpath(__file__, 'webinterface.js') @@ -645,7 +645,7 @@ self.MainPage.resetHMI() #print reason #print "We will be called back when the client disconnects" - + if havewx: reactor.registerWxApp(app) res = WebInterface()