diff --git a/trunk/yolanda/config/environment.py b/trunk/yolanda/config/environment.py index e12c7d4..0da1e3e 100644 --- a/trunk/yolanda/config/environment.py +++ b/trunk/yolanda/config/environment.py @@ -36,6 +36,10 @@ def load_environment(global_conf, app_conf): # any Pylons config options) config['pylons.response_options']['content_type'] = "application/xhtml+xml" - + # FIXME: this is generally wrong for other XML content + model.metadata.bind = engine_from_config(config, 'sqlalchemy.') model.metadata.bind.echo = True + + # better safe than sorry - everything should be utf-8 + tmpl_options['mako.input_encoding'] = 'utf-8'