comparison demo.py @ 2648:fe71e108d998

Main Roundup configuration class renamed to CoreConfig; fix vim modeline
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Tue, 27 Jul 2004 11:36:01 +0000
parents 75d410d11a20
children 1df7d4a41da4
comparison
equal deleted inserted replaced
2647:8c46091c36d0 2648:fe71e108d998
1 #! /usr/bin/env python 1 #! /usr/bin/env python
2 # 2 #
3 # Copyright (c) 2003 Richard Jones (richard@mechanicalcat.net) 3 # Copyright (c) 2003 Richard Jones (richard@mechanicalcat.net)
4 # 4 #
5 # $Id: demo.py,v 1.14 2004-07-27 02:34:14 richard Exp $ 5 # $Id: demo.py,v 1.15 2004-07-27 11:36:01 a1s Exp $
6 6
7 import sys, os, string, re, urlparse, ConfigParser 7 import sys, os, string, re, urlparse, ConfigParser
8 import shutil, socket, errno, BaseHTTPServer 8 import shutil, socket, errno, BaseHTTPServer
9 from glob import glob 9 from glob import glob
10 10
11 def install_demo(home, backend): 11 def install_demo(home, backend):
12 from roundup import init, instance, password, backends, configuration 12 from roundup import init, instance, password, backends, configuration
13 13
14 # set up the config for this tracker 14 # set up the config for this tracker
15 config = configuration.Config() 15 config = configuration.CoreConfig()
16 config['TRACKER_HOME'] = home 16 config['TRACKER_HOME'] = home
17 config['MAIL_DOMAIN'] = 'localhost' 17 config['MAIL_DOMAIN'] = 'localhost'
18 config['DATABASE'] = 'db' 18 config['DATABASE'] = 'db'
19 if backend in ('mysql', 'postgresql'): 19 if backend in ('mysql', 'postgresql'):
20 config['RDBMS_HOST'] = 'localhost' 20 config['RDBMS_HOST'] = 'localhost'
105 roundup_server.run(port, success_message) 105 roundup_server.run(port, success_message)
106 106
107 if __name__ == '__main__': 107 if __name__ == '__main__':
108 run_demo() 108 run_demo()
109 109
110 # vim: set filetype=python ts=4 sw=4 et si 110 # vim: set filetype=python sts=4 sw=4 et si :

Roundup Issue Tracker: http://roundup-tracker.org/