<s> from django . http import * <EOL> import os , sys , logging <EOL> from vt_manager . models import * <EOL> from vt_manager . controller import * <EOL> from vt_manager . communication . utils . XmlHelper import * <EOL> from vt_manager . utils . ServiceThread import * <EOL> from vt_manager . common . rpc4django import rpcmethod <EOL> from vt_manager . common . rpc4django import * <EOL> from vt_manager . controller . dispatchers . xmlrpc . DispatcherLauncher import DispatcherLauncher <EOL> from vt_manager . utils . SyncThread import * <EOL> @ rpcmethod ( url_name = "<STR_LIT>" , signature = [ '<STR_LIT:string>' , '<STR_LIT:string>' ] ) <EOL> def sendAsync ( xml ) : <EOL> logging . debug ( "<STR_LIT>" ) <EOL> rspec = XmlHelper . parseXmlString ( xml ) <EOL> ServiceThread . startMethodInNewThread ( DispatcherLauncher . processXmlResponse , rspec ) <EOL> return <EOL> @ rpcmethod ( ulr_name = "<STR_LIT>" , signature = [ '<STR_LIT:string>' , '<STR_LIT:string>' ] ) <EOL> def sendSync ( xml ) : <EOL> logging . debug ( "<STR_LIT>" ) <EOL> rspec = XmlHelper . parseXmlString ( xml ) <EOL> SyncThread . startMethodAndJoin ( DispatcherLauncher . processXmlResponseSync , rspec ) <EOL> return </s>
