Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def eop20SetID( src , dst , eoid ) : 

    # find the first occurence of the EOP element 
    tmp = _findElement( etree.parse( src ).getroot() , EOP ) 
    root = tmp 

    tmp = tmp.find( MDP ) 
    tmp = tmp.find( EOM ) 
    tmp = tmp.find( IDN ) 

    tmp.text = eoid 

    # set the namespaces' prefixes 

    register_namespace( "eop" , NS_EOP20 )  
    register_namespace( "om"  , NS_OM20 )  
    register_namespace( "gml" , NS_GML32 )  
    register_namespace( "xsi" , NS_XSI ) 
    register_namespace( "xlink" , NS_XLN ) 

    # save the result 
    dst.write( etree.tostring( root , encoding='UTF-8' ) ) 
    dst.flush() 
        


src/e/o/EOxServer-0.3.2/eoxserver/services/ows/wcst/wcst11ActionAdd.py   EOxServer(Download)
import shutil
 
from eopParse import eop20GetID, eop20SetID
from wcstUtils import (
    wcst11DownloadReference, getNewCoverageID, timeStampUTC, responseUpload, 
 
            try : 
                eop20SetID( f0 , f1 , coverageId ) 
            except Exception as e : 
                f0.close() ; f1.close() 

src/e/o/eoxserver-HEAD/eoxserver/services/ows/wcst/wcst11ActionAdd.py   eoxserver(Download)
import shutil
 
from eopParse import eop20GetID, eop20SetID
from wcstUtils import (
    wcst11DownloadReference, getNewCoverageID, timeStampUTC, responseUpload, 
 
            try : 
                eop20SetID( f0 , f1 , coverageId ) 
            except Exception as e : 
                f0.close() ; f1.close()