Ignore:
Timestamp:
26/03/07 22:21:36 (12 years ago)
Author:
lawrence
Message:

Sundry testcases plus a a bug fix for ticket:666 ... it's done, but I
don't like this bugfix because it shows that I don't really understand
unicode properly. Need to revisit unicode again ... later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/wsgi/renderDiscoverySet.py

    r2299 r2330  
    44from htmlUtilities import * 
    55from renderService import * 
    6  
     6debug=1 
    77def renderDiscoverySet(difSet,state,config,summary=0,services=0,spatial=0,temporal=0, 
    88    linkto='NDG_B_SERVICE',selector=None): 
     
    4444        serviceRenderer=renderService(config) 
    4545        if d.binding is not None: ll+=serviceRenderer.get(d.binding)[0] 
     46        for i in d.services: print i.url 
    4647        for item in d.services: 
    4748            ll+=', ' 
     
    5152            elif item.contentType == 'NDG_B_SERVICE': 
    5253                ndg+=1 
     54            print 'starting services',item.url 
    5355            ll+=serviceRenderer.get(item)[0] 
    54          
     56            print 'finishing services',item.url 
    5557        if ndg<2: ndg=0 
    5658        return ndg,ll 
     
    8082        bgc={1:'rbgWhite',-1:'rbgGrey'}[i] 
    8183        i=-1*i 
    82          
     84        if debug: print 'Rendering ',d.entryID 
    8385        if d.tree is None: 
    8486            html+='<tr class="%s"><td colspan="%s"> Unparseable record </td></tr>'%(bgc,len(columns)) 
     
    104106                rlist.append(htmlTime(d.timeCoverage[1])) 
    105107            html+=row(rlist,bgcolor=bgc) 
     108        print 'Completed rendering ',d.entryID 
    106109 
    107110    html+='</tbody></table>' 
Note: See TracChangeset for help on using the changeset viewer.