Example #1
0
    def __init__(self):
        DatabasePlugin.__init__(self)

        # noinspection PyUnresolvedReferences
        dbpassword = config.get("database", "password")
        if dbpassword:
            dbpool = MyConnectionPool(config.get("database", "adapter"),
                                      user=config.get("database", "username"),
                                      password=dbpassword,
                                      host=config.get("database", "host"),
                                      port=config.get("database", "port"),
                                      database=config.get("database", "dbname"))
        else:
            dbpool = MyConnectionPool(config.get("database", "adapter"),
                                      user=config.get("database", "username"),
                                      database=config.get("database", "dbname"))
        self.dbpool = dbpool
Example #2
0
    def __init__(self):
        DatabasePlugin.__init__(self)

        # noinspection PyUnresolvedReferences
        dbpassword = config.get("database", "password")
        if dbpassword:
            dbpool = MyConnectionPool(config.get("database", "adapter"),
                                      user=config.get("database", "username"),
                                      password=dbpassword,
                                      host=config.get("database", "host"),
                                      port=config.get("database", "port"),
                                      database=config.get(
                                          "database", "dbname"))
        else:
            dbpool = MyConnectionPool(config.get("database", "adapter"),
                                      user=config.get("database", "username"),
                                      database=config.get(
                                          "database", "dbname"))
        self.dbpool = dbpool
Example #3
0
 def __init__(self):
     DatabasePlugin.__init__(self)
     self.users = {}
Example #4
0
 def __init__(self):
     DatabasePlugin.__init__(self)
     self.users = {}