Changeset 4952
- Timestamp:
- 07/14/08 10:50:27 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.5/turbogears/config.py
r4927 r4952 201 201 followed by the config file. This means that the config file's options 202 202 override the options in the module file.""" 203 global configdict 203 204 configdict = config_obj(configfile, modulename).dict() 204 205 configure_loggers(configdict) … … 207 208 def get(key, default_value=None, return_section=False, path=None): 208 209 """Retrieves a config value""" 209 value = config.get(key, default_value , return_section, path)210 value = config.get(key, default_value) 210 211 if value and key == 'sqlobject.dburi' and os.name == 'nt': 211 212 value = re.sub('///(\w):', '///\\1|', value) 212 213 return value 213 214 215 214 216 def update(configvalues): 215 217 """Updates the configuration with the values from the dictionary.""" branches/1.5/turbogears/qstemplates/quickstart/+package+/config/app.cfg_tmpl
r4930 r4952 205 205 # compress the data sends to the web browser 206 206 # [/] 207 # gzip_filter.on = True 208 # gzip_filter.mime_types = ["application/json", "application/x-javascript", 207 # tools.gzip.mime_types = ["application/json", "application/x-javascript", 209 208 # "text/javascript", "text/html", "text/css", "text/plain"] 210 209 211 210 [/static] 212 static_filter.on = True 213 static_filter.dir = "%(top_level_dir)s/static" 211 tools.staticdir.dir = "%(top_level_dir)s/static" 214 212 215 213 [/favicon.ico] 216 static_filter.on = True 217 static_filter.file = "%(top_level_dir)s/static/images/favicon.ico" 214 tools.staticfile.filename = "%(top_level_dir)s/static/images/favicon.ico"