Changeset 1450 for TI07-MOLES/trunk


Ignore:
Timestamp:
23/08/06 16:00:46 (13 years ago)
Author:
domlowe
Message:

added comments in code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/existInterface/eXistGeneralInterface.py

    r1449 r1450  
    131131            r='none' 
    132132        return r 
    133          
     133    #getXMLRecord gets any XML record, added by Dom 
    134134    def getXMLRecord(self,collID,IDdefinition,itemID): 
    135         ''' Get a specific document from a collection in a repository by using the collection name and entryID ''' 
     135        ''' Get a specific document from a collection in a repository by using the collection name and ID and ID element name ''' 
    136136        xq='''for $DE in collection('%s')/*[%s='%s'] return $DE'''%(collID,IDdefinition,itemID) 
    137137        id,summary=self.executeQuery(xq) 
     
    167167    print 'done getDif' 
    168168     
     169    #two tests of getXMLRecord - one for a DIF, one for MOLES (added by Dom) 
    169170    print existDB.getXMLRecord('/db/dif','Entry_ID','badc.nerc.ac.uk:DIF:dataent12') 
    170171    print 'done getXMLRecord (DIF)' 
Note: See TracChangeset for help on using the changeset viewer.