def compilearg(self):
        """This method compiles the parameter into syntax that can be used on the shell, such as -paramflag=value"""
        if isinstance(self.value,list):
            value = self.delimiter.join(self.value)
        else:
            value = self.value
        if value.find(" ") >= 0:
            value = '"' + value + '"' #wrap all in quotes

        #for some odd, reason this produced an error, as if we're not an instance of choiceparameter
        #return super(ChoiceParameter,self).compilearg(value)

        #workaround:
        if self.paramflag and self.paramflag[-1] == '=' or self.nospace:
            sep = ''
        elif self.paramflag:
            sep = ' '
        else:
            return str(value)
        return self.paramflag + sep + str(value)
def compilearg ( self ) : if isinstance ( self . value , list ) : value = self . delimiter . join ( self . value ) else : value = self . value if value . find ( " " ) >= 0 : value = '"' + value + '"' if self . paramflag and self . paramflag [ - 1 ] == '=' or self . nospace : sep = '' elif self . paramflag : sep = ' ' else : return str ( value ) return self . paramflag + sep + str ( value )
This method compiles the parameter into syntax that can be used on the shell, such as -paramflag=value