Changeset 4209 for exist/trunk


Ignore:
Timestamp:
22/09/08 09:49:12 (11 years ago)
Author:
cbyrom
Message:

Move the Atom and MolesEntity? models, and their associated Utilities class
to the ndgUtils package to allow sensible re-use with the ows_server
stack + refactor references accordingly.

Location:
exist/trunk/python/ndgUtils
Files:
7 added
3 edited

Legend:

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

    r4160 r4209  
    4040 
    4141 
    42 class  eXistConnector(object): 
     42class eXistConnector(object): 
     43     
     44    # default collections for the various file types in eXist 
     45    BASE_COLLECTION_PATH = "/db/atoms/" 
     46    OLD_COLLECTION_PATH = "old/" 
     47    PUBLISHED_COLLECTION_PATH = "Published/" 
     48    SMALL_P_PUBLISHED_COLLECTION_PATH = "published/" 
     49    WORKING_COLLECTION_PATH = "working/" 
     50    BACKUP_COLLECTION_PATH = "/db/atoms_backup/" 
     51    GRANULE_COLLECTION_PATH = "data_granules/" 
     52    DEPLOYMENT_COLLECTION_PATH = "deployment_data/" 
     53    DE_COLLECTION_PATH = "data_entities/" 
     54    NDG_A_COLLECTION_PATH = "/db/ndg_A_metadata/" 
     55    NDG_A_COLLECTION_PATH_BACKUP = "/db/ndg_A_metadata_backup/" 
     56 
    4357    """Access class for eXist""" 
    4458    def __init__(self,constants=None): 
  • exist/trunk/python/ndgUtils/testVocabTermData.py

    r4203 r4209  
    11''' 
    2 A test class for the Utilities module. 
     2A test class for the vocab term data module. 
    33 
    44C Byrom Jun 2008 
  • exist/trunk/python/ndgUtils/vocabtermdata.py

    r4203 r4209  
    4444    TERM_DATA = { 
    4545                 URI_TERM:VocabTermItem('http://vocab.ndg.nerc.ac.uk/term/N041', '3', title = 'Data Home Page'), 
    46                  LOGO_TERM:VocabTermItem('LOGO - NOT YET SET UP', 'LOGO', title = 'Logo'), 
     46                 LOGO_TERM:VocabTermItem('LOGO', 'LOGO', title = 'Logo'), 
    4747                 NUM_SIM_TERM:VocabTermItem('http://vocab.ndg.nerc.ac.uk/term/N041', '7', title = 'NumSim description'), 
    4848                 OPENDAP_TERM:VocabTermItem('http://vocab.ndg.nerc.ac.uk/term/P201', 'GCMDU010', title = 'GET DATA > OPENDAP DATA (DODS)'), 
     
    135135        # allow the data to be refreshed on an hourly basis 
    136136        pageData = self._getVocabDataPage() 
    137  
     137         
    138138        uri = uri.replace('/term/','/list/') 
    139139        if uri.endswith('/'): 
Note: See TracChangeset for help on using the changeset viewer.