Changeset 6423


Ignore:
Timestamp:
27/01/10 16:28:17 (9 years ago)
Author:
domlowe
Message:

Catalogue controller modified to use getCSMLDatasetInfo method to csml connector - used to quickly get csml info without parsing entire file. Makes it much faster.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsserver/trunk/lib/cowsserver/controllers/catalogue.py

    r6405 r6423  
    3333            else: 
    3434                try: 
    35                     doc = globalCSMLConnector.getCsmlDoc(fc) 
     35                    docmetadata = globalCSMLConnector.getCSMLDatasetInfo(fc) 
    3636                except ValueError: 
    3737                    log.warning('could not open file %s'%fc) 
    3838                    continue      
    39                  
    40                 if hasattr(doc, 'name'): 
    41                     fc_name = doc.name.CONTENT 
     39                if docmetadata.has_key('name'): 
     40                    fc_name = docmetadata['name'] 
    4241                else: 
    4342                    fc_name = fc 
Note: See TracChangeset for help on using the changeset viewer.