erp, connection[database_path] not connection['database_path'] obviously :P

This commit is contained in:
Christopher Allan Webber 2011-03-27 17:30:42 -05:00
parent 2e30e3690a
commit 65d7374c37

View File

@ -28,7 +28,7 @@ class MediagoblinApp(object):
def __init__(self, connection, database_path, user_template_path=None):
self.template_env = util.get_jinja_env(user_template_path)
self.connection = connection
self.db = connection['database_path']
self.db = connection[database_path]
self.routing = routing.get_mapper()
models.register_models(connection)