Commits

Chris Miles  committed f54f086

Bugfix: ensure that 'schemabot.update_database' config value is parsed as a boolean.

  • Participants
  • Parent commits a929cbc

Comments (0)

Files changed (1)

File BlastOff/blastoff/template/+package+/config/environment.py_tmpl

 from pylons.error import handle_mako_error
 from sqlalchemy import engine_from_config
 from turbomail.adapters import tm_pylons
+from paste.deploy.converters import asbool
 
 import {{package}}.lib.app_globals as app_globals
 import {{package}}.lib.helpers
     # Setup the SQLAlchemy database engine
     engine = engine_from_config(config, 'sqlalchemy.')
 {{if use_schemabot}}
-    init_model(engine, auto_schema_update=config.get('schemabot.update_database', False))
+    init_model(engine, auto_schema_update=asbool(config.get('schemabot.update_database', False)))
 {{else}}
     init_model(engine)
 {{endif}}