Ignore:
Timestamp:
25/04/07 21:48:14 (12 years ago)
Author:
lawrence
Message:

Fixes for ticket:722, changing to internal unicode (probably not complete),
with decode on the edge coming out ... fixes 722 but may have some
other problems now ...

File:
1 edited

Legend:

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

    r2422 r2433  
    2323            #this is a bug fix, and it worries me that I had to do it ... I don't understand why 
    2424            #ideally this should apply to all the attributes of a DIF ...  
    25             description=service.description.decode('utf-8') 
     25            #Apr 25, removed for ticket: 722, I should have documented which ticket it was a bug fix for ... 
     26            #description=service.description.decode('utf-8') 
     27            description=service.description 
    2628        x=('<a href="%s" title="%s"><img src="%s" alt="%s"/></a>'%( 
    2729                url,description,icon,alt),description) 
     
    4143        c=myConfig(configFile) 
    4244        x=renderService(c) 
    43         print x.get(s) 
     45        h=x.get(s) 
     46        print h 
    4447         
    4548    def testOdditity(self): 
     
    4952        from ndgObject import ndgObject 
    5053        testURI='grid.bodc.nerc.ac.uk:DIF:EDMED1048008' 
     54        testURI='ndg.noc.soton.ac.uk__DIF__NOCSDAT162' 
    5155        inputs={'repository':'glue.badc.rl.ac.uk','uri':testURI,'format':'DIF','type':'xml','original':'1'} 
    5256        retriever=ndgRetrieve('./') 
     
    5862        for s in d.services: 
    5963            h=renderService(con) 
    60             print h.get(s) 
     64            html= h.get(s)[0] 
    6165 
    6266         
Note: See TracChangeset for help on using the changeset viewer.