Changeset 3455 for TI05-delivery


Ignore:
Timestamp:
19/02/08 11:52:37 (12 years ago)
Author:
cbyrom
Message:

Add new field arrays to DIF to hold lists of WMC and KML URLs.

File:
1 edited

Legend:

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

    r3419 r3455  
    173173         
    174174        # not all DIFs have KML resource available - set default value 
    175         # to the entryID for checking later on 
    176         self.kmlURL = self.entryID 
     175        # to the entryID to allow routing to work properly 
     176        self.kmlURL = [] 
     177        self.wmcURL = [] 
    177178        for item in helper.findall(self.tree,'Related_URL'): 
    178179            contentType=helper.getText(item,'URL_Content_Type') 
     
    189190            if contentType.find('KML') > 0: 
    190191                # NB, adding the '' to quote forces forward slashes to be replaced 
    191                 self.kmlURL = urllib.quote(serviceURL,'') 
    192          
     192                # with unicode equivalent 
     193                self.kmlURL.append(urllib.quote(serviceURL,'')) 
     194            elif contentType.find('WEB MAP CONTEXT') > 0: 
     195                self.wmcURL.append(urllib.quote(serviceURL,'')) 
     196                 
    193197        if self.ndgObject is None: 
    194198            self.binding=None 
Note: See TracChangeset for help on using the changeset viewer.