Changeset 3180 for exist/trunk/python


Ignore:
Timestamp:
04/01/08 19:53:54 (12 years ago)
Author:
selatham
Message:

extended for MDIP and MOLES listing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/ndgDirectory.py

    r3163 r3180  
    2020         
    2121        #get the right namespace 
    22         self.ns={'DIF':'http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/'}[docType] 
    23          
     22        self.ns={'DIF':'http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/','MOLES':'http://ndg.nerc.ac.uk/moles','MDIP':'http://www.oceannet.org/mdip/xml'}[docType] 
    2423        #select the query 
    2524        queries=ndgXqueries.ndgXqueries() 
    26         xqName={'DIF':'DIFList'}[docType] 
     25        xqName={'DIF':'DIFList','MOLES':'molesList', 'MDIP':'MDIPList', 'moles':'molesList'}[docType] 
    2726        self.docType=docType 
    2827        xq=queries[xqName] 
Note: See TracChangeset for help on using the changeset viewer.