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/stubB.py

    r4259 r4469  
    88#  
    99 
    10 from Utilities import * 
     10from milk_server.lib.Utilities import * 
    1111from ndgUtils.BeautifulSoup import BeautifulSoup 
    1212from AccessControl import AccessControl 
    13 from geoUtilities import Bounding 
     13from milk_server.lib.geoUtilities import Bounding 
    1414from People import * 
    1515from ndgUtils import ndgObject 
    16 from ows_server.models import Utilities 
    1716import logging 
    1817 
    19 #from DeploymentHandling import * 
    2018try: #python 2.5 
    2119    from xml.etree import ElementTree as ET 
     
    311309                # now go get all the related links 
    312310                self.related=Deployments(helper.find(elem,'DeploymentSummary'),helper,self.config) 
    313  
    314  
    315 if __name__=="__main__": 
    316     import unittest 
    317     import os.path 
    318     from ndgUtils import ndgRetrieve, xmlHandler2 
    319          
    320      
    321     class TestCase(unittest.TestCase): 
    322      
    323             def testDE(self): 
    324                 ''' Test rendering a DataEntity stubB ''' 
    325                 doc='badc.nerc.ac.uk__NDG-B1__dataent_COAPEC' 
    326                 xml=self.getit(doc)      
    327                 self.doit(xml.tree) 
    328                  
    329             def getit(self,doc): 
    330                 self.c=myConfig('../../ndgDiscovery.config') 
    331                 uri=ndgObject(doc) 
    332                 status,xml=ndgRetrieve(uri,self.c) 
    333                 self.assertEqual(status,1) 
    334                 xml=xmlHandler2.xmlHandler(xml,string=1) 
    335                 return xml 
    336            
    337             def doit(self,xml): 
    338                 x=stubB(xml,self.c) 
    339                  
    340           
    341     unittest.main() 
    342              
    343              
Note: See TracChangeset for help on using the changeset viewer.