PEATSA/WebApp/Data.py
def addOptionArgument(self, option, value):
	
		'''Adds an argument and value to the job
		
		Params:
			option: A command line option for the program that does not specify a file
			value: The value of the option'''
	
		optionArgs = self.optionArguments()
		optionArgs[option] = value
		data = SerializeDictionary(optionArgs)
		data = MySQLdb.escape_string(data)
		
		statement = """UPDATE %s SET OptionArguments='%s' WHERE JobID='%s' """ % (self.jobTable, data, self.identification)
		self.cursor.execute(statement)
		self.connection.commit()
Adds an argument and value to the job
		
		Params:
			option: A command line option for the program that does not specify a file
			value: The value of the option
Adds an argument and value to the job
Adds an argument and value to the job
def addOptionArgument(self, option, value):
		optionArgs = self.optionArguments()
		optionArgs[option] = value
		data = SerializeDictionary(optionArgs)
		data = MySQLdb.escape_string(data)
		statement = """UPDATE %s SET OptionArguments='%s' WHERE JobID='%s' """ % (self.jobTable, data, self.identification)
		self.cursor.execute(statement)
		self.connection.commit()
def addOptionArgument ( self , option , value ) : optionArgs = self . optionArguments ( ) optionArgs [ option ] = value data = SerializeDictionary ( optionArgs ) data = MySQLdb . escape_string ( data ) statement = """UPDATE %s SET OptionArguments='%s' WHERE JobID='%s' """ % ( self . jobTable , data , self . identification ) self . cursor . execute ( statement ) self . connection . commit ( )
Adds an argument and value to the job
Adds an argument and value to the job
'''Adds an argument and value to the job
		
		Params:
			option: A command line option for the program that does not specify a file
			value: The value of the option'''
self
option
A command line option for the program that does not specify a file
A command line option for the program that does not specify a file
value
The value of the option
The value of the option