Пример #1
0
    def __init__(self):
        GlobalConfig.__init__(self)
        self.__keys = ("db_type", "db_name", "db_mysql_ip",
                       "db_mysql_username", "db_mysql_password")

        if self.get("init_super_admin") == False:
            self.gdb.init_data({
                "db_type": "sqlite",
                "db_name": "ob_panel",
                "db_mysql_ip": "127.0.0.1",
                "db_mysql_username": "******",
                "db_mysql_password": ""
            })

        self._logger = logging.getLogger("ob_panel")
Пример #2
0
    def __init__(self):
        GlobalConfig.__init__(self)
        self.__keys = ("sys_java_dir", "sys_java_version")

        if self.get("init_super_admin") == False:
            self.gdb.init_data({"sys_java_dir": "", "sys_java_version": ""})