Ignore:
Timestamp:
24/06/08 16:32:05 (11 years ago)
Author:
cbyrom
Message:

DocumentRetrieve? - add granule atom support for get method.
ETxmlView - fix nsdumb.strip() - using lstrip() when should be using replace()
eXistConnectory - add removeDoc method to allow cleanup of eXist when
deleting granules.

File:
1 edited

Legend:

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

    r3361 r4025  
    2626    def get(self,repository,schema,localID,targetCollection='/db/discovery/moles'): 
    2727 
    28         if schema in ['NDG-A0','NumSim']: 
     28        if schema in ['NDG-A0', 'NumSim', 'G_ATOM']: 
    2929            ''' These documents are stored in their own native format and have their 
    3030            own native xqueries ''' 
    31             query={'NDG-A0':'csml','NumSim':'numsim'}[schema] 
     31            query={'NDG-A0':'csml','NumSim':'numsim', 'G_ATOM':'granuleAtom'}[schema] 
    3232            xquery=self.xq.actual(query,targetCollection,repository,localID) 
     33            print xquery 
    3334            id,summary=self.executeQuery(xquery) 
    3435            if summary['hits']==1: 
Note: See TracChangeset for help on using the changeset viewer.