Ignore:
Timestamp:
23/09/09 16:34:54 (11 years ago)
Author:
domlowe
Message:

modified catalogue controller and template to allow for wfs only service endpoints. Add wfsonly.txt to csmlstore directory to use

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/service/imps/csmlbackend/csmlcommon.py

    r4972 r5756  
    147147                    relpath = dirpath[len(self.csml_dir):] 
    148148                    yield os.path.join(relpath, file_id) 
     149                     
     150    def listwfsonly(self): 
     151            """ 
     152        Generator that lists all CSML endpoints that can't be served through WMS/WCS. 
     153        This list is (optionally)   defined in the wfsonly.txt file in the csml directory. 
     154            """ 
     155            cfgfile = os.path.join(self.csml_dir, 'wfsonly.txt') 
     156            if os.path.exists(cfgfile): 
     157                f=open(cfgfile, 'r') 
     158                for line in f: 
     159                    yield line.strip('\n') 
     160                f.close() 
     161            else: 
     162                return 
     163                 
     164                 
    149165 
    150166# 
Note: See TracChangeset for help on using the changeset viewer.