48 def HMIinitialisation(self): |
48 def HMIinitialisation(self): |
49 self.HMIinitialised(None) |
49 self.HMIinitialised(None) |
50 |
50 |
51 |
51 |
52 class DefaultPLCStartedHMI(PLCHMI): |
52 class DefaultPLCStartedHMI(PLCHMI): |
53 docFactory = loaders.stan(tags.div(render=tags.directive('liveElement'))[ |
53 docFactory = loaders.stan( |
54 tags.h1["PLC IS NOW STARTED"], |
54 tags.div(render=tags.directive('liveElement'))[ |
55 ]) |
55 tags.h1["PLC IS NOW STARTED"], |
|
56 ]) |
56 |
57 |
57 |
58 |
58 class PLCStoppedHMI(PLCHMI): |
59 class PLCStoppedHMI(PLCHMI): |
59 docFactory = loaders.stan(tags.div(render=tags.directive('liveElement'))[ |
60 docFactory = loaders.stan( |
60 tags.h1["PLC IS STOPPED"], |
61 tags.div(render=tags.directive('liveElement'))[ |
61 ]) |
62 tags.h1["PLC IS STOPPED"], |
|
63 ]) |
62 |
64 |
63 |
65 |
64 class MainPage(athena.LiveElement): |
66 class MainPage(athena.LiveElement): |
65 jsClass = u"WebInterface.PLC" |
67 jsClass = u"WebInterface.PLC" |
66 docFactory = loaders.stan(tags.div(render=tags.directive('liveElement'))[ |
68 docFactory = loaders.stan( |
67 tags.div(id='content')[ |
69 tags.div(render=tags.directive('liveElement'))[ |
68 tags.div(render=tags.directive('PLCElement')), |
70 tags.div(id='content')[ |
69 ]]) |
71 tags.div(render=tags.directive('PLCElement'))] |
|
72 ]) |
70 |
73 |
71 def __init__(self, *a, **kw): |
74 def __init__(self, *a, **kw): |
72 athena.LiveElement.__init__(self, *a, **kw) |
75 athena.LiveElement.__init__(self, *a, **kw) |
73 self.pcl_state = False |
76 self.pcl_state = False |
74 self.HMI = None |
77 self.HMI = None |