From 49d9cbdb87a40cf58f1997914ca1b5033fcc13b3 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 8 Mar 2020 14:14:00 +0000 Subject: exports.get_one() -> exports.get() --- src/core_modules/channel_access.py | 2 +- src/core_modules/command_spec/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core_modules') diff --git a/src/core_modules/channel_access.py b/src/core_modules/channel_access.py index 662599e0..a8c371a8 100644 --- a/src/core_modules/channel_access.py +++ b/src/core_modules/channel_access.py @@ -21,7 +21,7 @@ class Module(ModuleManager.BaseModule): user_access = target.get_user_setting(user.get_id(), "access", []) - identified = self.exports.get_one("is-identified")(user) + identified = self.exports.get("is-identified")(user) matched = list(set(required_access)&set(user_access)) return ("*" in user_access or matched) and identified diff --git a/src/core_modules/command_spec/__init__.py b/src/core_modules/command_spec/__init__.py index 6a4fd3d8..6345d342 100644 --- a/src/core_modules/command_spec/__init__.py +++ b/src/core_modules/command_spec/__init__.py @@ -48,7 +48,7 @@ class Module(ModuleManager.BaseModule): if argument_type.type in types.TYPES: func = types.TYPES[argument_type.type] else: - func = self.exports.get_one( + func = self.exports.get( "command-spec.%s" % argument_type.type) if func: -- cgit v1.3.1-10-gc9f91