コード例 #1
0
def handle_backwards_compatibility(permissions):
    for username, user_permissions in permissions.items():
        if user_permissions == ['*']:

            get_nio_logger("Authorizer").warning(
                "User: {} has assigned old style permissions, "
                "please use new dictionary-like convention".format(username))

            permissions[username] = {".*": "rwx"}
コード例 #2
0
 def __init__(self, route, log_manager):
     super().__init__(route)
     self._log_manager = log_manager
     self.logger = get_nio_logger("CoreLogHandler")
コード例 #3
0
 def __init__(self, route, log_manager):
     super().__init__(route)
     self._log_manager = log_manager
     self.logger = get_nio_logger("ServiceLogHandler")
コード例 #4
0
    def __init__(self, url_prefix, manager):
        super().__init__()
        self.logger = get_nio_logger("DeploymentManager")

        self._url_prefix = url_prefix
        self._manager = manager
コード例 #5
0
    def __init__(self, url_prefix, manager):
        super().__init__()
        self.logger = get_nio_logger("DeploymentManager")

        self._url_prefix = url_prefix
        self._manager = manager
コード例 #6
0
    def __init__(self, manager):
        super().__init__('/config/')

        self._manager = manager
        self.logger = get_nio_logger("DeploymentManager")
コード例 #7
0
 def __init__(self):
     """ Constructor for the Persistence module
     """
     self.logger = get_nio_logger("File-Persistence")
コード例 #8
0
 def __init__(self):
     self.logger = get_nio_logger("LogEntries")
コード例 #9
0
 def __init__(self):
     self.logger = get_nio_logger("LogEntries")
コード例 #10
0
 def __init__(self, route, project_manager):
     super().__init__(route)
     self._project_manager = project_manager
     self.logger = get_nio_logger("ProjectManagerHandler")