Changeset 3159 for TI05-delivery


Ignore:
Timestamp:
18/12/07 11:29:50 (12 years ago)
Author:
lawrence
Message:

Fixes for ticket:291. (These are hacks, I'm not at all confident
I've got the escaping sequences sorted properly, but I intend
to fix this when we have the new ET in ndgUtils and that's
backed into the trunk).

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server/models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/models/DIF.py

    r3152 r3159  
    174174                DIFService( 
    175175                 helper.getText(item,'URL_Content_Type'), 
    176                  helper.getText(item,'URL'), 
     176                 helper.cleanup.undo(helper.getText(item,'URL')), 
    177177                 helper.getText(item,'Description') )) 
    178178         
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/models/ETxmlView.py

    r3094 r3159  
    3030            s=self.r1.sub(r'<\1',s) 
    3131            s=self.r2.sub(r'\1>',s) 
     32        return s 
     33    def undo(self,s): 
     34        s=s.replace('&','&') 
     35        s=s.replace('>','>') 
     36        s=s.replace('&lt;','<') 
    3237        return s 
    3338         
     
    240245            helper=nsdumb(tree) 
    241246            self.assertEqual(helper.getText(tree,self.ids[i]),self.results[i]) 
    242          
     247 
    243248 
    244249if __name__=="__main__": 
Note: See TracChangeset for help on using the changeset viewer.