MCPcopy Create free account
hub / github.com/ActiveState/code / result

Method result

recipes/Python/496723_Table_FedTable/recipe-496723.py:129–272  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

127 li.append(index)
128
129 def result(self):
130 global _TS_OK
131 if not _TS_OK:
132 TableStyle = """
133 <STYLE>
134 .Header{
135 background-color: #C3D9FF;
136 }
137 .Normal{
138 background-color: #E8EEF7;
139 }
140 .Selected{
141 font-weight: bold;
142 background-color: #FFFFCC
143 }
144 .Highlight {
145 background-color : #FFFFFF;
146 font-weight: bold;
147 }
148 .MousePointed{
149 background-color: #FFFFFF;
150 }
151 </STYLE>"""
152 print TableStyle
153 _TS_OK = 1
154
155 output = ""
156 if self.TableName <> "":
157 if self.Collapsable:
158 global _SC_Toggle
159 if not _SC_Toggle:
160 ScriptToggle = """<script language="javascript">
161 function ToggleSpan(oSpan, oSpanImg){
162 if (oSpan == null)
163 return false
164
165 if (oSpan.style.display == "none")
166 oSpan.style.display = "block"
167 else
168 oSpan.style.display = "none"
169
170 if (oSpanImg != null){
171 src1 = "%s"
172 src2 = "%s"
173
174 if (oSpanImg.src.match('open'))
175 oSpanImg.src = src2
176 else
177 oSpanImg.src = src1
178 }
179 }
180 </script>""" % ( src1, src2)
181 _SC_Toggle = 1
182 print ScriptToggle
183
184 global TableGenerated
185 TableGenerated += 1
186 TableId = TableGenerated

Callers 1

recipe-496723.pyFile · 0.45

Calls 3

rangeFunction · 0.85
CheckAttribFunction · 0.85
RoundEdgeFunction · 0.85

Tested by

no test coverage detected