Ignore:
Timestamp:
08/12/08 09:24:00 (11 years ago)
Author:
cbyrom
Message:

Move existbdclient to lib package + extend to make use of DocumentRetrieve? to allow retrieval of atoms by ID + fix handling of
authors vs contributors when doing Atom to XML exports.

File:
1 edited

Legend:

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

    r4532 r4555  
    3131 
    3232    ATOM_TYPE = 'ATOM-TYPE' 
     33    ATOM = 'ATOM' 
    3334    def __init__(self, repository, pwfile='passwords.txt'): 
    3435        logging.info("Using repository, '%s'" %repository) 
     
    4041        self.knownQueries={'DIF':'moles2dif','DC':'moles2DC','ISO19139':'moles2iso19139', \ 
    4142                           'NDG-B0':'moles','NDG-B1':'molesObjectType','MDIP':'moles2mdip', \ 
    42                            'NDG-A0':'csml','NumSim':'numsim', 'ATOM':'atom', \ 
     43                           'NDG-A0':'csml','NumSim':'numsim', self.ATOM:'atom', \ 
    4344                           'ATOM-BACKUP':'atom', self.ATOM_TYPE:'atomTypeList'} 
    4445 
     
    6364 
    6465 
    65     def get(self,repository,schema,localID,targetCollection='/db/discovery/moles', includeDocNameData=False): 
     66    def get(self,repository,schema,localID,targetCollection='/db/discovery/moles', \ 
     67            includeDocNameData=False): 
    6668        ''' 
    6769        @keyword includeDocNameData: if True, a dictionary is returned, instead of the dataset, with the key 
Note: See TracChangeset for help on using the changeset viewer.