Changeset 1450 for TI07-MOLES
- Timestamp:
- 23/08/06 16:00:46 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI07-MOLES/trunk/PythonCode/existInterface/eXistGeneralInterface.py
r1449 r1450 131 131 r='none' 132 132 return r 133 133 #getXMLRecord gets any XML record, added by Dom 134 134 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 ''' 136 136 xq='''for $DE in collection('%s')/*[%s='%s'] return $DE'''%(collID,IDdefinition,itemID) 137 137 id,summary=self.executeQuery(xq) … … 167 167 print 'done getDif' 168 168 169 #two tests of getXMLRecord - one for a DIF, one for MOLES (added by Dom) 169 170 print existDB.getXMLRecord('/db/dif','Entry_ID','badc.nerc.ac.uk:DIF:dataent12') 170 171 print 'done getXMLRecord (DIF)'
Note: See TracChangeset
for help on using the changeset viewer.