Changeset 28

Show
Ignore:
Timestamp:
09/13/07 06:27:28 (1 year ago)
Author:
tal
Message:
Small tweaks to make it seem a bit more Cocoa like.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • applications/FeatureProof/trunk/Lib/featureProof/logToHTML.py

    r26 r28  
    178178    html = [] 
    179179    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) 
    181181    html.append(s) 
    182182    html.append("<div id=\"table%d\">" % localID) 
     
    197197    localID = elementIDCounter 
    198198    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] 
    200200    for i in element: 
    201201        name = i.get("name") 
     
    214214    localID = elementIDCounter 
    215215    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] 
    217217    for i in element: 
    218218        feature = i.get("feature") 
     
    244244    localID = elementIDCounter 
    245245    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] 
    247247    for i in element: 
    248248        html += _logLookup(i) 
     
    257257    feature = element.get("feature") 
    258258    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) 
    260260    html.append(s) 
    261261    html.append("<div id=\"lookup%d\">" % localID) 
     
    297297 
    298298def _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] 
    300303    records = _glyphRecordsToString(element) 
    301304    if records: 
     
    304307        s = '<p class="output">None</p>' 
    305308    html.append(s) 
    306     return html 
     309    html.append("</div>") 
     310    return html