Mercurial > p > roundup > code
comparison roundup/configuration.py @ 2906:a8808157f892
fix some bugs introduced in refactoring of blobfiles filename()
unless in debug mode, keep a single persistent connection through a
single web or mailgw request
fix enabling of DEBUG logging in db_test_case (no cmdline switch yet)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 12 Nov 2004 04:07:05 +0000 |
| parents | ae2907da636d |
| children | 9d2c5d7c6f85 |
comparison
equal
deleted
inserted
replaced
| 2905:6e46572a9f39 | 2906:a8808157f892 |
|---|---|
| 1 # Roundup Issue Tracker configuration support | 1 # Roundup Issue Tracker configuration support |
| 2 # | 2 # |
| 3 # $Id: configuration.py,v 1.21 2004-11-03 09:44:47 a1s Exp $ | 3 # $Id: configuration.py,v 1.22 2004-11-12 04:07:03 richard Exp $ |
| 4 # | 4 # |
| 5 __docformat__ = "restructuredtext" | 5 __docformat__ = "restructuredtext" |
| 6 | 6 |
| 7 import getopt | 7 import getopt |
| 8 import imp | 8 import imp |
| 1011 | 1011 |
| 1012 """ | 1012 """ |
| 1013 | 1013 |
| 1014 # module name for old style configuration | 1014 # module name for old style configuration |
| 1015 PYCONFIG = "config" | 1015 PYCONFIG = "config" |
| 1016 # logging engine | 1016 # placeholder so we can assign later |
| 1017 logging = rlog.BasicLogging() | 1017 logging = None |
| 1018 # user configs | 1018 # user configs |
| 1019 ext = None | 1019 ext = None |
| 1020 detectors = None | 1020 detectors = None |
| 1021 | 1021 |
| 1022 def __init__(self, home_dir=None): | 1022 def __init__(self, home_dir=None): |
| 1023 Config.__init__(self, home_dir, SETTINGS) | 1023 Config.__init__(self, home_dir, SETTINGS) |
| 1024 self.logging = rlog.BasicLogging() | |
| 1024 # load the config if home_dir given | 1025 # load the config if home_dir given |
| 1025 if home_dir is None: | 1026 if home_dir is None: |
| 1026 self.init_logging() | 1027 self.init_logging() |
| 1027 | 1028 |
| 1028 def _get_unset_options(self): | 1029 def _get_unset_options(self): |
