# Path: nappingcat/util.py
# def _resolve_name(name, package, level):
# def import_class_from_module(name):
# 
# Path: nappingcat/config.py
# SECTION_NAME = 'kittyconfig' 
# def build_settings():
# def setup_environ(settings):


from nappingcat.util import import_module
from nappingcat import config
            level = result.get(i, None)
            if level is None:
                result[i] = {}
            result = result[i]
        result[full_query[-1]] = True

    def remove_permission(self, user, permission):
        self.require_update = True
        full_query = (user,) + tuple(permission)
        result = self.users
        for i in full_query[:-1]:
            level = result.get(i, None)
            if level is None:
                result[i] = {}
            result = result[i]
        del result[full_query[-1]]

    def add_user(self, username):
        self.require_update = True
        self.users[username] = {'keys':[]}

    def add_key_to_user(self, user, key):
        self.require_update = True
        self.users[user]['keys'].append(key)

    def get_keys(self, username):
        return self.users[username]['keys']

    def finish(self, pubkey_handler):
        if self.require_update:

# Path: nappingcat/util.py
# def _resolve_name(name, package, level):
# def import_class_from_module(name):
# 
# Path: nappingcat/config.py
# SECTION_NAME = 'kittyconfig' 
# def build_settings():
# def setup_environ(settings):


# Path: nappingcat/auth.py
from nappingcat.util import import_module
from nappingcat import config

            level = result.get(i, None)
            if level is None:
                result[i] = {}
            result = result[i]
        result[full_query[-1]] = True

    def remove_permission(self, user, permission):
        self.require_update = True
        full_query = (user,) + tuple(permission)
        result = self.users
        for i in full_query[:-1]:
            level = result.get(i, None)
            if level is None:
                result[i] = {}
            result = result[i]
        del result[full_query[-1]]

    def add_user(self, username):
        self.require_update = True
        self.users[username] = {'keys':[]}

    def add_key_to_user(self, user, key):
        self.require_update = True
        self.users[user]['keys'].append(key)

    def get_keys(self, username):
        return self.users[username]['keys']

    def finish(self, pubkey_handler):
        if self.require_update:

            pubkey_handler.flush_keys(self)