(self)
{
              "result": {
                "coolscript.cls": {
                  "line": -1,
                  "column": -1,
                  "compiled": true,
                  "success": true,
                  "compileProblem": null,
                  "exceptionStackTrace": null,
                  "exceptionMessage": null
                }
              },
              "success": true
            }
{
              "result": {
                "coolscript.cls": {
                  "line": -1,
                  "column": -1,
                  "compiled": true,
                  "success": true,
                  "compileProblem": null,
                  "exceptionStackTrace": null,
                  "exceptionMessage": null
                }
              },
              "success": true
            }
{ result : { coolscript . cls : { line : - 1 column : - 1 compiled : true success : true compileProblem : null exceptionStackTrace : null exceptionMessage : null } } success : true }
def __handle_apex_script_result(self):
        '''
            {
              "result": {
                "coolscript.cls": {
                  "line": -1,
                  "column": -1,
                  "compiled": true,
                  "success": true,
                  "compileProblem": null,
                  "exceptionStackTrace": null,
                  "exceptionMessage": null
                }
              },
              "success": true
            }
        '''
        msg = ''
        for script_name in self.result:
            script_res = self.result[script_name]
            debug(script_res)
            if script_res['success'] and script_res['compiled']:
                self.__print_to_panel("Success")
                msg += 'Success '+script_name+'\n'
            elif not script_res['success']:
                msg = "[OPERATION FAILED]: "
                if "compileProblem" in script_res and script_res["compileProblem"] != None:
                    msg += "[Line: "+str(script_res["line"]) + ", Column: "+str(script_res["column"])+"] " + script_res["compileProblem"] + "\n"
                if "exceptionMessage" in script_res and script_res["exceptionMessage"] != None:
                    msg += script_res["exceptionMessage"] + "\n"
                if "exceptionStackTrace" in script_res and script_res["exceptionStackTrace"] != None:
                    msg += script_res["exceptionStackTrace"] + "\n"
        self.__print_to_panel(msg)
def __handle_apex_script_result ( self ) : msg = '' for script_name in self . result : script_res = self . result [ script_name ] debug ( script_res ) if script_res [ 'success' ] and script_res [ 'compiled' ] : self . __print_to_panel ( "Success" ) msg += 'Success ' + script_name + '\n' elif not script_res [ 'success' ] : msg = "[OPERATION FAILED]: " if "compileProblem" in script_res and script_res [ "compileProblem" ] != None : msg += "[Line: " + str ( script_res [ "line" ] ) + ", Column: " + str ( script_res [ "column" ] ) + "] " + script_res [ "compileProblem" ] + "\n" if "exceptionMessage" in script_res and script_res [ "exceptionMessage" ] != None : msg += script_res [ "exceptionMessage" ] + "\n" if "exceptionStackTrace" in script_res and script_res [ "exceptionStackTrace" ] != None : msg += script_res [ "exceptionStackTrace" ] + "\n" self . __print_to_panel ( msg )