Changeset 3494 for exist/trunk


Ignore:
Timestamp:
21/02/08 15:09:07 (12 years ago)
Author:
cbyrom
Message:

Add undo function missing from this branch compared with code trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/ETxmlView.py

    r3125 r3494  
    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.