Ignore:
Timestamp:
28/04/06 13:18:44 (14 years ago)
Author:
lawrence
Message:

Exist database now configurable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/StubB/XSLT/browse/portal/cgi/insecure.py

    r824 r857  
    3131                return 0,s 
    3232 
    33 def insecureGetDoc(uri,jar='./returnmoles.jar'): 
     33def insecureGetDoc(uri,db='xmldb:exist://glue.badc.rl.ac.uk:8080/exist/xmlrpc', jar='./returnmoles.jar'): 
    3434        ''' Use Kevin's code to get the document from exist ''' 
    3535        #we assume the URI is of the form repository/localid 
     
    4040                return None 
    4141        returnMolesJar=jarLoc(jar) 
    42         cmd='java -jar %s %s %s xmldb:exist://glue.badc.rl.ac.uk:8080/exist/xmlrpc'%( 
    43         returnMolesJar,repPath,localID) 
     42        cmd='java -jar %s %s %s %s'%( 
     43        returnMolesJar,repPath,localID, db) 
    4444        status,result=commands.getstatusoutput(cmd)#osCommand(cmd) 
    4545        if status:  
     
    8080        #print d 
    8181        #dd=doXSLT(d,jar='../xalan-j_2_7_0/xalan.jar') 
    82         print dd 
     82        #print dd 
Note: See TracChangeset for help on using the changeset viewer.