parameters: (self, argv)
docstring: Effectively "main" from Commandlinewrapper
docstring_summary: Effectively "main" from Commandlinewrapper
docstring_tokens: Effectively main from Commandlinewrapper
function: def __call__(self, argv):
          """Effectively "main" from Commandlinewrapper"""
          logConfig = None
          context = {}
          rendezvous = None
          try:
              (opts, args) = self.__coli_parser.parse_args(argv)
              if opts.InConfig is None:
                  raise ExploitConfigError("You must pass a valid --InConfig option")
  
              # Read the input config and create a truanchild Config object
              self.config = truantchild.Config([opts.InConfig])
  
              # make sure the id from the binary matches the config
              if self.getID() != self.config.id:
                  print "Mismatching configurations!!"
                  return 1
  
              # XXX Add the bit about help, line 215
  
              inputs = self.config._inputParams
              outputs= self.config._outputParams
              constants = None                # Fuzzbunch doesn't support these yet
  
              #pytrch.Params_parseCommandLine( inputs.parameters, len(sys.argv), sys.argv, doHelp)
  
              # Convert the options from Truanchild to easy-to-handle input for the plugin
              iOptions = self.tc2List( inputs )
              oOptions = self.tc2Dict( outputs )
  
              # add the params from the wrapper
              valid = self.validateParams(iOptions)
              # XXX Print the invalid options
              if opts.ValidateOnly is True:
                  return 0
  
              (fhNo, logConfig) = self.processWrapperParams( opts )
  
              # Setup all of the existing sockets
              self.doRendezvousClient(inputs)        
              retval = self.processParams(iOptions, constants, oOptions, context, logConfig)
  
              try:
                  self.options2Tc( oOptions, outputs )
              except Exception as e:
                  # If this fails, the plugin was not successful
                  print str(oOptions)
                  print "Failed: {0}".format(e)
                  return 1
  
              # Add the output parameter for the rendezvous
              (rendezvous, sock) = self.addWrapperOutputParams( outputs, self.config.namespaceUri, self.config.schemaVersion )
              exma.writeParamsToEM( fhNo, self.config.getMarshalledInConfig() )
          
              # This sends us into a send/recv loop
              self.doRendezvousServer( rendezvous, sock )
              self.cleanup( EDF_CLEANUP_WAIT, context, logConfig )
  
          except Exception as e:
              print "Failed: {0}".format(e)
              raise
function_tokens: def __call__ ( self , argv ) : logConfig = None context = { } rendezvous = None try : ( opts , args ) = self . __coli_parser . parse_args ( argv ) if opts . InConfig is None : raise ExploitConfigError ( "You must pass a valid --InConfig option" ) # Read the input config and create a truanchild Config object self . config = truantchild . Config ( [ opts . InConfig ] ) # make sure the id from the binary matches the config if self . getID ( ) != self . config . id : print "Mismatching configurations!!" return 1 # XXX Add the bit about help, line 215 inputs = self . config . _inputParams outputs = self . config . _outputParams constants = None # Fuzzbunch doesn't support these yet #pytrch.Params_parseCommandLine( inputs.parameters, len(sys.argv), sys.argv, doHelp) # Convert the options from Truanchild to easy-to-handle input for the plugin iOptions = self . tc2List ( inputs ) oOptions = self . tc2Dict ( outputs ) # add the params from the wrapper valid = self . validateParams ( iOptions ) # XXX Print the invalid options if opts . ValidateOnly is True : return 0 ( fhNo , logConfig ) = self . processWrapperParams ( opts ) # Setup all of the existing sockets self . doRendezvousClient ( inputs ) retval = self . processParams ( iOptions , constants , oOptions , context , logConfig ) try : self . options2Tc ( oOptions , outputs ) except Exception as e : # If this fails, the plugin was not successful print str ( oOptions ) print "Failed: {0}" . format ( e ) return 1 # Add the output parameter for the rendezvous ( rendezvous , sock ) = self . addWrapperOutputParams ( outputs , self . config . namespaceUri , self . config . schemaVersion ) exma . writeParamsToEM ( fhNo , self . config . getMarshalledInConfig ( ) ) # This sends us into a send/recv loop self . doRendezvousServer ( rendezvous , sock ) self . cleanup ( EDF_CLEANUP_WAIT , context , logConfig ) except Exception as e : print "Failed: {0}" . format ( e ) raise