# written 2007 by Robin H. Johnson # License: GPL-2 """settings modules""" class DatabaseConfig(object): # No touchy settings = {} # Uncomment exactly one of these lines! mode = 'mysql' #sqlite mode is broken for now #mode = 'sqlite' # 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['sqlite'] = {} settings['sqlite'] ['database'] = '/CHANGE_ME/pgo.db' # Settings for MySQL. You need to create two users in # your MySQL database. # 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_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' # 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: