Changeset 4169
- Timestamp:
- 06/20/08 09:41:06 (2 months ago)
- Files:
-
- trunk/dabo/__init__.py (modified) (3 diffs)
- trunk/dabo/dConstants.py (modified) (1 diff)
- trunk/dabo/settings.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dabo/__init__.py
r4092 r4169 130 130 131 131 132 # Import global settings (do this first, as other imports may rely on it): 133 from settings import * 134 132 135 # Instantiate the logger object, which will send messages to user-overridable 133 136 # locations. Do this before any other imports. … … 135 138 infoLog = Log() 136 139 infoLog.Caption = "Dabo Info Log" 137 infoLog.LogObject = sys.stdout 140 if verboseLogging: 141 infoLog.LogObject = sys.stdout 142 else: 143 class NullWrite(object): 144 def write(self, txt): pass 145 infoLog.LogObject = NullWrite() 138 146 errorLog = Log() 139 147 errorLog.Caption = "Dabo Error Log" … … 148 156 dbActivityLog.Caption = "Database Activity Log" 149 157 dbActivityLog.LogObject = None 150 151 # Import global settings (do this first, as other imports may rely on it):152 from settings import *153 158 154 159 from __version__ import version trunk/dabo/dConstants.py
r3054 r4169 29 29 DLG_OK = 0 30 30 DLG_CANCEL = -1 31 DLG_YES = 2 32 DLG_NO = -2 31 33 32 34 # Flag to indicate that field validation was skipped trunk/dabo/settings.py
r4022 r4169 23 23 24 24 ### Settings - begin 25 26 # Do we write info-level messages to stdout? 27 verboseLogging = False 25 28 26 29 # Event logging is turned off globally by default for performance reasons.
