Ignore:
Timestamp:
20/11/08 15:36:44 (12 years ago)
Author:
cbyrom
Message:

Strip out code not relevant to MILK - mainly WCS and WMS stuff - also including the CSML server code + trackback code
Also tidy up structure of 'public' dir - setting up new 'style' dir and
centralising icons in icons dir + remove all unused icons, javascript and stylesheets.
Also strip out testcase code and populate new test directory structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/models/People2.py

    r3501 r4469  
    1 from Utilities import wrapGetText 
    21from ndgUtils.ETxmlView import nsdumb 
    3 from htmlUtilities import * 
    4 from xmlHandler import xmlHandler 
    5  
     2from milk_server.lib.htmlUtilities import * 
    63 
    74def tr(x):return '<tr>%s</tr>'%x 
     
    201198</Personnel> 
    202199</Data_Center>''' 
    203  
    204  
    205 class TestCase(unittest.TestCase): 
    206      
    207     def testDIFContact(self): 
    208         '''Test instantiating a DIFContact''' 
    209         w='<DIF xmlns="http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">%s</DIF>'%Example2 
    210         #w='<wrap>%s</wrap>'%Example2 
    211         y=xmlHandler(w,string=1) 
    212         h=nsdumb(y.tree) 
    213         e=h.find(y.tree,'Data_Center') 
    214         d=DIFcontact(h,e) 
    215         print d.toHTML() 
    216      
    217     def testDIFname(self): 
    218         '''Make sure we can create a contact, with just a name ''' 
    219         x=DIFcontact(0,0,name='Bryan Lawrence') 
    220         print x.toHTML() 
    221     
    222 if __name__=="__main__": 
    223     unittest.main()          
Note: See TracChangeset for help on using the changeset viewer.