(self, severity, code, message, params = None, **kvargs)
Adds another message to the set of messages to be sent back to user
            If error message then can_save is set false
            If fatal message then error or found errors are raised at once
Adds another message to the set of messages to be sent back to user
            If error message then can_save is set false
            If fatal message then error or found errors are raised at once
Adds another message to the set of messages to be sent back to user If error message then can_save is set false If fatal message then error or found errors are raised at once
def tell_user(self, severity, code, message, params = None, **kvargs):
        """ Adds another message to the set of messages to be sent back to user
            If error message then can_save is set false
            If fatal message then error or found errors are raised at once
        """
        params = params or kvargs
        #plpy.notice("%s %s: %s %s" % (severity, code, message, str(params)))
        params["_severity"] = severity
        params["_code"] = code
        params["_message"] = message
        self.messages.append( params )
        if severity == self.ERROR:
            self.can_save = False
        if severity == self.FATAL:
            self.can_save = False
            self.raise_if_errors()
def tell_user ( self , severity , code , message , params = None , * * kvargs ) : params = params or kvargs #plpy.notice("%s %s: %s %s" % (severity, code, message, str(params))) params [ "_severity" ] = severity params [ "_code" ] = code params [ "_message" ] = message self . messages . append ( params ) if severity == self . ERROR : self . can_save = False if severity == self . FATAL : self . can_save = False self . raise_if_errors ( )