25
25
##################################################
26
26
## MODULE CONSTANTS
30
True, False = (1==1), (1==0)
27
31
VFFSL=valueFromFrameOrSearchList
28
32
VFSL=valueFromSearchList
30
34
currentTime=time.time
31
__CHEETAH_version__ = '2.2.1'
32
__CHEETAH_versionTuple__ = (2, 2, 1, 'final', 0)
33
__CHEETAH_genTime__ = 1244715457.758189
34
__CHEETAH_genTimestamp__ = 'Thu Jun 11 12:17:37 2009'
35
__CHEETAH_version__ = '2.0.1'
36
__CHEETAH_versionTuple__ = (2, 0, 1, 'final', 0)
37
__CHEETAH_genTime__ = 1252401816.838763
38
__CHEETAH_genTimestamp__ = 'Tue Sep 8 11:23:36 2009'
35
39
__CHEETAH_src__ = 'prewikka/templates/HeartbeatAnalyze.tmpl'
36
40
__CHEETAH_srcLastModified__ = 'Tue May 5 16:55:59 2009'
37
__CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
41
__CHEETAH_docstring__ = 'Autogenerated by CHEETAH: The Python-Powered Template Engine'
39
43
if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
40
44
raise AssertionError(
100
104
row_classes = ("table_row_even", "table_row_odd")
104
_v = VFFSL(SL,"row_classes",True)[VFFSL(SL,"cnt",True)%2] # u'$row_classes[$cnt%2]' on line 22, col 14
105
if _v is not None: write(_filter(_v, rawExpr=u'$row_classes[$cnt%2]')) # from line 22, col 14.
108
_v = VFFSL(SL,"analyzer.name",True) # u'$analyzer.name' on line 23, col 9
109
if _v is not None: write(_filter(_v, rawExpr=u'$analyzer.name')) # from line 23, col 9.
112
_v = VFFSL(SL,"analyzer.model",True) # u'$analyzer.model' on line 24, col 9
113
if _v is not None: write(_filter(_v, rawExpr=u'$analyzer.model')) # from line 24, col 9.
115
_v = VFFSL(SL,"analyzer.version",True) # u'$analyzer.version' on line 24, col 25
116
if _v is not None: write(_filter(_v, rawExpr=u'$analyzer.version')) # from line 24, col 25.
119
_v = VFFSL(SL,"analyzer.ostype",True) # u'$analyzer.ostype' on line 25, col 9
120
if _v is not None: write(_filter(_v, rawExpr=u'$analyzer.ostype')) # from line 25, col 9.
122
_v = VFFSL(SL,"analyzer.osversion",True) # u'$analyzer.osversion' on line 25, col 26
123
if _v is not None: write(_filter(_v, rawExpr=u'$analyzer.osversion')) # from line 25, col 26.
126
_v = VFFSL(SL,"analyzer.node_name",True) # u'$analyzer.node_name' on line 26, col 9
127
if _v is not None: write(_filter(_v, rawExpr=u'$analyzer.node_name')) # from line 26, col 9.
130
_v = VFFSL(SL,"analyzer.node_location",True) # u'$analyzer.node_location' on line 27, col 9
131
if _v is not None: write(_filter(_v, rawExpr=u'$analyzer.node_location')) # from line 27, col 9.
108
_v = VFFSL(SL,"row_classes",True)[VFFSL(SL,"cnt",True)%2] # '$row_classes[$cnt%2]' on line 22, col 14
109
if _v is not None: write(_filter(_v, rawExpr='$row_classes[$cnt%2]')) # from line 22, col 14.
112
_v = VFFSL(SL,"analyzer.name",True) # '$analyzer.name' on line 23, col 9
113
if _v is not None: write(_filter(_v, rawExpr='$analyzer.name')) # from line 23, col 9.
116
_v = VFFSL(SL,"analyzer.model",True) # '$analyzer.model' on line 24, col 9
117
if _v is not None: write(_filter(_v, rawExpr='$analyzer.model')) # from line 24, col 9.
119
_v = VFFSL(SL,"analyzer.version",True) # '$analyzer.version' on line 24, col 25
120
if _v is not None: write(_filter(_v, rawExpr='$analyzer.version')) # from line 24, col 25.
123
_v = VFFSL(SL,"analyzer.ostype",True) # '$analyzer.ostype' on line 25, col 9
124
if _v is not None: write(_filter(_v, rawExpr='$analyzer.ostype')) # from line 25, col 9.
126
_v = VFFSL(SL,"analyzer.osversion",True) # '$analyzer.osversion' on line 25, col 26
127
if _v is not None: write(_filter(_v, rawExpr='$analyzer.osversion')) # from line 25, col 26.
130
_v = VFFSL(SL,"analyzer.node_name",True) # '$analyzer.node_name' on line 26, col 9
131
if _v is not None: write(_filter(_v, rawExpr='$analyzer.node_name')) # from line 26, col 9.
134
_v = VFFSL(SL,"analyzer.node_location",True) # '$analyzer.node_location' on line 27, col 9
135
if _v is not None: write(_filter(_v, rawExpr='$analyzer.node_location')) # from line 27, col 9.
135
139
if len(VFFSL(SL,"analyzer.node_addresses",True)) > 0: # generated from line 29, col 7
136
140
for address in VFFSL(SL,"analyzer.node_addresses",True): # generated from line 30, col 9
138
_v = VFFSL(SL,"address",True) # u'$address' on line 31, col 11
139
if _v is not None: write(_filter(_v, rawExpr=u'$address')) # from line 31, col 11.
142
_v = VFFSL(SL,"address",True) # '$address' on line 31, col 11
143
if _v is not None: write(_filter(_v, rawExpr='$address')) # from line 31, col 11.
142
146
else: # generated from line 33, col 7
147
_v = VFFSL(SL,"analyzer.last_heartbeat_time",True) # u'$analyzer.last_heartbeat_time' on line 37, col 9
148
if _v is not None: write(_filter(_v, rawExpr=u'$analyzer.last_heartbeat_time')) # from line 37, col 9.
151
_v = VFFSL(SL,"analyzer.last_heartbeat_time",True) # '$analyzer.last_heartbeat_time' on line 37, col 9
152
if _v is not None: write(_filter(_v, rawExpr='$analyzer.last_heartbeat_time')) # from line 37, col 9.
150
154
<td class="heartbeat_analyze_sensor_status_''')
151
_v = VFFSL(SL,"analyzer.status",True) # u'$analyzer.status' on line 38, col 48
152
if _v is not None: write(_filter(_v, rawExpr=u'$analyzer.status')) # from line 38, col 48.
155
_v = VFFSL(SL,"analyzer.status",True) # '$analyzer.status' on line 38, col 48
156
if _v is not None: write(_filter(_v, rawExpr='$analyzer.status')) # from line 38, col 48.
155
_v = VFFSL(SL,"analyzer.status_meaning",True) # u'$analyzer.status_meaning' on line 39, col 10
156
if _v is not None: write(_filter(_v, rawExpr=u'$analyzer.status_meaning')) # from line 39, col 10.
159
_v = VFFSL(SL,"analyzer.status_meaning",True) # '$analyzer.status_meaning' on line 39, col 10
160
if _v is not None: write(_filter(_v, rawExpr='$analyzer.status_meaning')) # from line 39, col 10.
165
169
<table class="heartbeat_analyze">
172
176
row_classes = ("table_row_even", "table_row_odd")
174
178
for event in VFFSL(SL,"analyzer.events",True): # generated from line 54, col 5
175
write(u''' <tr class="''')
176
_v = VFFSL(SL,"row_classes",True)[VFFSL(SL,"cnt",True)%2] # u'$row_classes[$cnt%2]' on line 55, col 18
177
if _v is not None: write(_filter(_v, rawExpr=u'$row_classes[$cnt%2]')) # from line 55, col 18.
178
write(u'''"><td colspan="8" class="heartbeat_analyzer_event_''')
179
_v = VFFSL(SL,"event.type",True) # u'$event.type' on line 55, col 88
180
if _v is not None: write(_filter(_v, rawExpr=u'$event.type')) # from line 55, col 88.
182
_v = VFFSL(SL,"event.value",True) # u'$event.value' on line 55, col 101
183
if _v is not None: write(_filter(_v, rawExpr=u'$event.value')) # from line 55, col 101.
179
write(''' <tr class="''')
180
_v = VFFSL(SL,"row_classes",True)[VFFSL(SL,"cnt",True)%2] # '$row_classes[$cnt%2]' on line 55, col 18
181
if _v is not None: write(_filter(_v, rawExpr='$row_classes[$cnt%2]')) # from line 55, col 18.
182
write('''"><td colspan="8" class="heartbeat_analyzer_event_''')
183
_v = VFFSL(SL,"event.type",True) # '$event.type' on line 55, col 88
184
if _v is not None: write(_filter(_v, rawExpr='$event.type')) # from line 55, col 88.
186
_v = VFFSL(SL,"event.value",True) # '$event.value' on line 55, col 101
187
if _v is not None: write(_filter(_v, rawExpr='$event.value')) # from line 55, col 101.