1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-07-06 23:50:48 +02:00

[#76] The settings will be taken in a non versionned settings file

This commit is contained in:
Roland Haroutiounian 2015-11-05 10:10:32 +01:00
commit 292a3dc8f6

View file

@ -1,8 +1,7 @@
# -*- coding: utf8 -*-
import pymysql
import settings
## @brief Manages the accesses to a MySQL datasource
class MySQL(object):
@ -12,15 +11,7 @@ class MySQL(object):
field_lodel_id = 'lodel_id'
class_table_prefix = 'class_'
objects_table_name = 'object'
connections = {
'default': {
'module': pymysql,
'host': '127.0.0.1',
'user': 'lodel',
'passwd': 'bruno',
'db': 'lodel2'
}
}
connections = settings.DATABASE_CONNECTIONS
@classmethod
## @brief gets the table name from class name