aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2007-11-10 13:15:16 (GMT)
committerRobin H. Johnson <robbat2@gentoo.org>2007-11-10 13:15:16 (GMT)
commit0233bb14e5d1943788fbdd90f2693978f53465fd (patch)
treee785aafccd54f781c31eec615f8bd4e0eb598fb7
parentWrapper moved, and remember the timeout now. (diff)
downloadpackages-0233bb14e5d1943788fbdd90f2693978f53465fd.zip
packages-0233bb14e5d1943788fbdd90f2693978f53465fd.tar.gz
packages-0233bb14e5d1943788fbdd90f2693978f53465fd.tar.bz2
Cleanup.v1.0.0
-rw-r--r--etc/database_config.py.example21
1 files changed, 15 insertions, 6 deletions
diff --git a/etc/database_config.py.example b/etc/database_config.py.example
index 8ac0d29..ecd32c4 100644
--- a/etc/database_config.py.example
+++ b/etc/database_config.py.example
@@ -4,6 +4,9 @@
"""settings modules"""
class DatabaseConfig(object):
+ # No touchy
+ settings = {}
+
# Uncomment exactly one of these lines!
mode = 'mysql'
#mode = 'sqlite'
@@ -11,7 +14,6 @@ class DatabaseConfig(object):
# SQLite is supported, but not recommended
# It does not allow full privilege seperation,
# and allows only a single thread to hit the database at a time.
- settings = {}
settings['sqlite'] = {}
settings['sqlite'] ['database'] = '/CHANGE_ME/pgo.db'
@@ -20,16 +22,23 @@ class DatabaseConfig(object):
# 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
+ # Do NOT change these
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'] = 'utf8'
+ # These you should change
+ settings['mysql_ro']['host'] = 'CHANGEME'
+ settings['mysql_ro']['db'] = 'CHANGEME'
settings['mysql_ro']['user'] = 'CHANGEME'
settings['mysql_ro']['passwd'] = 'CHANGEME'
+ settings['mysql_rw'] = settings['mysql_ro'].copy()
settings['mysql_rw']['user'] = 'CHANGEME'
settings['mysql_rw']['passwd'] = 'CHANGEME'
- # You should probably not change this
- settings['mysql_ro']['charset'] = settings['mysql_rw']['charset'] = 'utf8'
+ # Disable memcache by default
+ settings['memcached'] = None
+ # Uncomment the next 3 lines if you want memcache support
+ #settings['memcached'] = {}
+ #settings['memcached']['servers'] = ['127.0.0.1:11211']
+ #settings['memcached']['args'] = {'debug': False}
# vim:ts=4 et ft=python: