Changeset 28
- Timestamp:
- 09/13/07 06:27:28 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
applications/FeatureProof/trunk/Lib/featureProof/logToHTML.py
r26 r28 178 178 html = [] 179 179 name = element.get("name") 180 s = "<h1 id=\"table%d_head\" class=\"table\" onclick=\"toggle('table%d');\" >Table: <b>%s</b></h1>" % (localID, localID, name)180 s = "<h1 id=\"table%d_head\" class=\"table\" onclick=\"toggle('table%d');\" style=\"cursor : default;\">Table: <b>%s</b></h1>" % (localID, localID, name) 181 181 html.append(s) 182 182 html.append("<div id=\"table%d\">" % localID) … … 197 197 localID = elementIDCounter 198 198 elementIDCounter += 1 199 html = ["<h2 id=\"features%d_head\" onclick=\"toggle('features%d');\" >Features:</h2>" % (localID, localID), "<div id=\"features%d\">" % localID]199 html = ["<h2 id=\"features%d_head\" onclick=\"toggle('features%d');\" style=\"cursor : default;\">Features:</h2>" % (localID, localID), "<div id=\"features%d\">" % localID] 200 200 for i in element: 201 201 name = i.get("name") … … 214 214 localID = elementIDCounter 215 215 elementIDCounter += 1 216 html = ["<h2 id=\"applicableLookupIndices%d_head\" onclick=\"toggle('applicableLookupIndices%d');\" >Applicable Lookup Indices:</h2>" % (localID, localID), "<div id=\"applicableLookupIndices%d\">" % localID]216 html = ["<h2 id=\"applicableLookupIndices%d_head\" onclick=\"toggle('applicableLookupIndices%d');\" style=\"cursor : default;\">Applicable Lookup Indices:</h2>" % (localID, localID), "<div id=\"applicableLookupIndices%d\">" % localID] 217 217 for i in element: 218 218 feature = i.get("feature") … … 244 244 localID = elementIDCounter 245 245 elementIDCounter += 1 246 html = ["<h2 id=\"lookupApplication%d_head\" onclick=\"toggle('lookupApplication%d');\" >Lookup Application:</h2>" % (localID, localID), "<div id=\"lookupApplication%d\">" % localID]246 html = ["<h2 id=\"lookupApplication%d_head\" onclick=\"toggle('lookupApplication%d');\" style=\"cursor : default;\">Lookup Application:</h2>" % (localID, localID), "<div id=\"lookupApplication%d\">" % localID] 247 247 for i in element: 248 248 html += _logLookup(i) … … 257 257 feature = element.get("feature") 258 258 index = element.get("index") 259 s = "<h3 id=\"lookup%d_head\" onclick=\"toggle('lookup%d');\" >Feature: <b>%s</b> Lookup Index: <b>%s</b></h3>" % (localID, localID, feature, index)259 s = "<h3 id=\"lookup%d_head\" onclick=\"toggle('lookup%d');\" style=\"cursor : default;\">Feature: <b>%s</b> Lookup Index: <b>%s</b></h3>" % (localID, localID, feature, index) 260 260 html.append(s) 261 261 html.append("<div id=\"lookup%d\">" % localID) … … 297 297 298 298 def _logResults(element, logPosition=True): 299 html = ["<h2>Results:</h2>"] 299 global elementIDCounter; 300 localID = elementIDCounter 301 elementIDCounter += 1 302 html = ["<h2 id=\"results%d_head\" onclick=\"toggle('results%d');\" style=\"cursor : default;\">Results:</h2>" % (localID, localID), "<div id=\"results%d\">" % localID] 300 303 records = _glyphRecordsToString(element) 301 304 if records: … … 304 307 s = '<p class="output">None</p>' 305 308 html.append(s) 306 return html 309 html.append("</div>") 310 return html
