Ignore:
Timestamp:
24/09/08 15:26:06 (11 years ago)
Author:
cbyrom
Message:

Add support for doing lists and summaries of atom docs via ndgDirectory and the existInterface class + add necessary xquery files for this + add new method to
allow retrieval of the collection to which an atom with a specified ID belongs - including the associated xquery file + extend tests to exercise these new features
+ add custom Atom error + improve preservation of key atom attributes when loading existing atoms into an Atom object + improve determining default atom collection

File:
1 edited

Legend:

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

    r4209 r4229  
    123123     
    124124    def getDoc(self,collectionName,documentName): 
    125         ''' Lightweight interface to the getDocument method ''' 
    126         name='%s/%s'%(collectionName,documentName) 
    127         r=self.xmlrpc.getDocumentAsString(name,{}) 
    128         return r 
     125        '''  
     126    Lightweight interface to the getDocument method  
     127    ''' 
     128    # atoms have a more structured collection directory - as a result 
     129    # AtomList.xq returns the full path to the listed docs - so avoid 
     130    # concat'ing the collectionName for these 
     131        if documentName.startswith(collectionName): 
     132            name = documentName 
     133        else: 
     134            name='%s/%s'%(collectionName,documentName) 
     135        r=self.xmlrpc.getDocumentAsString(name,{}) 
     136        return r 
    129137     
    130138    def removeCollection(self,collectionPath): 
Note: See TracChangeset for help on using the changeset viewer.