Ignore:
Timestamp:
24/04/06 19:45:28 (14 years ago)
Author:
lawrence
Message:

A modicum of support for different entities ... plus a possibly better way
of doing the system commands from python that is more reliable than popen3

File:
1 edited

Legend:

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

    r800 r824  
    1111import os.path 
    1212import tempfile 
     13import commands 
    1314 
    1415def jarLoc(jar): 
     
    4142        cmd='java -jar %s %s %s xmldb:exist://glue.badc.rl.ac.uk:8080/exist/xmlrpc'%( 
    4243        returnMolesJar,repPath,localID) 
    43         status,result=osCommand(cmd) 
     44        status,result=commands.getstatusoutput(cmd)#osCommand(cmd) 
    4445        if status:  
    4546                return None 
     
    7475         
    7576if __name__=="__main__": 
    76         d= insecureGetDoc('badc.nerc.ac.uk/dataent13',jar='../returnmoles.jar') 
     77        #d= insecureGetDoc('badc.nerc.ac.uk/dataent13',jar='../returnmoles.jar') 
     78        d= insecureGetDoc('badc.nerc.ac.uk/activity3',jar='../returnmoles.jar') 
     79        print d 
    7780        #print d 
    78         dd=doXSLT(d,jar='../xalan-j_2_7_0/xalan.jar') 
     81        #dd=doXSLT(d,jar='../xalan-j_2_7_0/xalan.jar') 
    7982        print dd 
Note: See TracChangeset for help on using the changeset viewer.