diff --git a/jumonc/_version.py b/jumonc/_version.py index 76f34f3e9784b471195568b4e1ed276fc1ef1773..86311f2dc2d534dc5198d9d528834e137b62af3f 100644 --- a/jumonc/_version.py +++ b/jumonc/_version.py @@ -3,7 +3,7 @@ _specifier_ = {'alpha': 'a', 'beta': 'b', 'candidate': 'rc', 'final': ''} # Module version -version_info = (0, 10, 0, 'candidate', 4) +version_info = (0, 10, 0, 'candidate', 5) version_end = '' if version_info[3] == 'final' else _specifier_[version_info[3]]+str(version_info[4]) __version__ = f'{version_info[0]}.{version_info[1]}.{version_info[2]}{version_end}' diff --git a/jumonc/authentication/tokens.py b/jumonc/authentication/tokens.py index 144e0e5726fe32646b310f0c0c606ff49f8d75af..6ef69b40a358a22176cffef0895042fdd84eccdf 100644 --- a/jumonc/authentication/tokens.py +++ b/jumonc/authentication/tokens.py @@ -20,6 +20,11 @@ def parseUserToken(text: str) -> Tuple[str,int]: tokens: Dict[str,int]= {} + +def addToken(token:str, scope:int) -> None: + tokens[token] = scope + + def registerTokens() -> None: for user_token in settings.USER_DEFINED_TOKEN: (token, scope) = parseUserToken(user_token) diff --git a/jumonc/handlers/job.py b/jumonc/handlers/job.py index f713dc61de56c71b5af20e9400a7172a2d7311af..55ab6675b98dc6b22682492c5f5cbf28c686c470 100644 --- a/jumonc/handlers/job.py +++ b/jumonc/handlers/job.py @@ -75,7 +75,7 @@ def registerStatusLinks(version: int) -> Dict[str, Union[bool, str, List[Dict[st def registerConfigLinks(version: int) -> Dict[str, Union[bool, str, List[Dict[str, str]]]]: types : List[str] = ['Nodename'] descriptions : List[str] = ['retrieve the name of a node, to enable better debugging'] - if pluginInformation.pluginIsWorking("jumonc_CPUPlugin") is True: + if pluginInformation.pluginIsWorking("jumonc_JOBPlugin") is True: for i, typeStr in enumerate(types): config_links.append({ "link": "/v" + str(version) + job_path + "/config/" + typeStr,