def raiseError(errTxt): tai.write("Function: raiseError will raise an exception") raise tai.TcError(errTxt)
def callbackForAutomaticCall(txt): tai.write("callback function called, reference '%s'" % txt, tai.NOTIFICATION_LEVEL.HIGH)
def check_tai_write(): tai.write("tai.NOTIFICATION_LEVEL.PROGRESS", tai.NOTIFICATION_LEVEL.PROGRESS) tai.write("tai.NOTIFICATION_LEVEL.DEBUG_DETAIL", tai.NOTIFICATION_LEVEL.DEBUG_DETAIL) tai.write("tai.NOTIFICATION_LEVEL.DEBUG", tai.NOTIFICATION_LEVEL.DEBUG) tai.write("tai.NOTIFICATION_LEVEL.LOW", tai.NOTIFICATION_LEVEL.LOW) tai.write("tai.NOTIFICATION_LEVEL.NORMAL", tai.NOTIFICATION_LEVEL.NORMAL) tai.write("tai.NOTIFICATION_LEVEL.HIGH", tai.NOTIFICATION_LEVEL.HIGH) tai.write("tai.NOTIFICATION_LEVEL.WARNING", tai.NOTIFICATION_LEVEL.WARNING) tai.write("tai.NOTIFICATION_LEVEL.ERROR", tai.NOTIFICATION_LEVEL.ERROR)
def foo(): tai.write("message from foo")