Changeset 3500 for exist


Ignore:
Timestamp:
22/02/08 10:57:07 (11 years ago)
Author:
cbyrom
Message:

Change default value of discovery flag to 1 to get DIF records working via ndgSearch as standard.
Adjust ndgObject to convert the ndgRetrieve doc to a proper XML tree, with xmlHandler2.

Location:
exist/trunk/python/ndgUtils
Files:
2 edited

Legend:

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

    r3169 r3500  
    1 from ndgUtils.ndgRetrieve import ndgRetrieve 
     1import ndgRetrieve,xmlHandler2 
     2 
    23class ndgObject: 
    34    ''' This class instantiates an ndgObject which describes the various ways of obtaining itself, primarily 
     
    108109        status,xmlh=ndgRetrieve(self,self.config) 
    109110        if status: 
    110             return xmlh.xmls 
     111            x=xmlHandler2.xmlHandler(xmlh,string=1) 
     112            return x.xmls 
    111113        else: 
    112114            return status 
  • exist/trunk/python/ndgUtils/ndgRetrieve.py

    r3212 r3500  
    1 import DocumentRetrieve 
     1import DocumentRetrieve,xmlHandler2 
    22from ndgSearch import ndgSearch 
    33import cgi,time 
    44 
    5 def ndgRetrieve(uri,config,logger=0,output='',remote=0,discovery=0): 
     5def ndgRetrieve(uri,config,logger=0,output='',remote=0,discovery=1): 
    66     
    77    ''' Given an uri (an instance of ndgObject), retrieve it, with security in place. 
     
    3636            except: 
    3737                raise ValueError,"Config file not available or incomplete" 
     38             
    3839            if r<> sr: 
    3940                if not remote: 
Note: See TracChangeset for help on using the changeset viewer.