Changeset 5917 for ndgCommon/trunk


Ignore:
Timestamp:
30/10/09 16:38:07 (10 years ago)
Author:
sdonegan
Message:

Added attribute method detailing how many services available for any given DIF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/src/models/DIF.py

    r5883 r5917  
    183183        self.kmlURL = [] 
    184184        self.wmcURL = [] 
     185        self.serviceCounter = 0 
    185186        for item in helper.findall(self.tree,'Related_URL'): 
    186187            contentType=helper.getText(item,'URL_Content_Type') 
     
    202203                self.wmcURL.append(urllib.quote(serviceURL,'%')) 
    203204                 
     205            #count number of services available - will be used to determine whether to show "services" bar in DDS             
     206            if 'GET SERVICE' in contentType: 
     207                self.serviceCounter = self.serviceCounter + 1 
     208                 
     209                
    204210        if self.ndgObject is None: 
    205211            self.binding=None 
Note: See TracChangeset for help on using the changeset viewer.