# HG changeset patch # User Goffi # Date 1592578070 -7200 # Node ID 25eacbb1d59e378b4b4ebb6c639a11a50d108141 # Parent 198605982d15088f51c1cadc85129097409b96be server (classes): use default for all values for Script: content can then be specified without having to specify an empty src. diff -r 198605982d15 -r 25eacbb1d59e libervia/server/classes.py --- a/libervia/server/classes.py Fri Jun 19 16:47:50 2020 +0200 +++ b/libervia/server/classes.py Fri Jun 19 16:47:50 2020 +0200 @@ -24,4 +24,4 @@ WebsocketMeta = namedtuple("WebsocketMeta", ("url", "token", "debug")) Notification = namedtuple("Notification", ("message", "level")) -Script = namedtuple("Script", ("src", "type", "content"), defaults=(None, "")) +Script = namedtuple("Script", ("src", "type", "content"), defaults=(None, None, ""))