runtime/NevowServer.py
changeset 1744 69dfdb26f600
parent 1740 b789b695b5c6
child 1746 45d6f5fba016
equal deleted inserted replaced
1743:c3c3d1318130 1744:69dfdb26f600
    62 
    62 
    63 class MainPage(athena.LiveElement):
    63 class MainPage(athena.LiveElement):
    64     jsClass = u"WebInterface.PLC"
    64     jsClass = u"WebInterface.PLC"
    65     docFactory = loaders.stan(tags.div(render=tags.directive('liveElement'))[
    65     docFactory = loaders.stan(tags.div(render=tags.directive('liveElement'))[
    66                                                     tags.div(id='content')[
    66                                                     tags.div(id='content')[
    67                                                     tags.div(render = tags.directive('PLCElement')),
    67                                                     tags.div(render=tags.directive('PLCElement')),
    68                                                     ]])
    68                                                     ]])
    69 
    69 
    70     def __init__(self, *a, **kw):
    70     def __init__(self, *a, **kw):
    71         athena.LiveElement.__init__(self, *a, **kw)
    71         athena.LiveElement.__init__(self, *a, **kw)
    72         self.pcl_state = False
    72         self.pcl_state = False
   120     docFactory = loaders.stan([tags.raw(xhtml_header),
   120     docFactory = loaders.stan([tags.raw(xhtml_header),
   121                                 tags.html(xmlns="http://www.w3.org/1999/xhtml")[
   121                                 tags.html(xmlns="http://www.w3.org/1999/xhtml")[
   122                                     tags.head(render=tags.directive('liveglue')),
   122                                     tags.head(render=tags.directive('liveglue')),
   123                                     tags.body[
   123                                     tags.body[
   124                                         tags.div[
   124                                         tags.div[
   125                                                 tags.div( render = tags.directive( "MainPage" ))
   125                                                 tags.div( render=tags.directive( "MainPage" ))
   126                                                 ]]]])
   126                                                 ]]]])
   127     MainPage = MainPage()
   127     MainPage = MainPage()
   128     PLCHMI = PLCHMI
   128     PLCHMI = PLCHMI
   129 
   129 
   130     def __init__(self, plcState=False, *a, **kw):
   130     def __init__(self, plcState=False, *a, **kw):