diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/__init__.py | 2 | ||||
-rw-r--r-- | etc/database_config.py | 23 |
2 files changed, 25 insertions, 0 deletions
diff --git a/etc/__init__.py b/etc/__init__.py new file mode 100644 index 0000000..9d0296f --- /dev/null +++ b/etc/__init__.py @@ -0,0 +1,2 @@ +# written 2007 by Robin H. Johnson <robbat2@gentoo.org> +# License: GPL-2 diff --git a/etc/database_config.py b/etc/database_config.py new file mode 100644 index 0000000..52a8986 --- /dev/null +++ b/etc/database_config.py @@ -0,0 +1,23 @@ +# written 2007 by Robin H. Johnson <robbat2@gentoo.org> +# License: GPL-2 + +"""settings modules""" + +class DatabaseConfig(object): + mode = 'mysql' + settings = {} + settings['sqlite'] = {} + settings['sqlite'] ['database'] = '/CHANGE_ME/pgo.db' + + # The _ro user should ONLY have privileges to use 'SELECT' on the tables! + # The _rw user needs: + # CREATE TABLE, DROP TABLE, DELETE, INSERT, UPDATE, SELECT + settings['mysql_ro'] = {} + settings['mysql_rw'] = {} + settings['mysql_ro']['host'] = settings['mysql_rw']['host'] = 'CHANGEME' + settings['mysql_ro']['db'] = settings['mysql_rw']['db'] = 'CHANGEME' + settings['mysql_ro']['charset'] = settings['mysql_rw']['charset'] = 'utf8' + settings['mysql_ro']['user'] = 'CHANGEME' + settings['mysql_ro']['passwd'] = 'CHANGEME' + settings['mysql_rw']['user'] = 'CHANGEME' + settings['mysql_rw']['passwd'] = 'CHANGEME' |