Show More
@@ -28,7 +28,6 b' import tg' | |||
|
28 | 28 | from alembic.migration import MigrationContext |
|
29 | 29 | from alembic.script.base import ScriptDirectory |
|
30 | 30 | from sqlalchemy import create_engine |
|
31 | from tg import hooks | |
|
32 | 31 | from tg.configuration import AppConfig |
|
33 | 32 | from tg.support.converters import asbool |
|
34 | 33 | |
@@ -187,7 +186,7 b' def setup_configuration(app):' | |||
|
187 | 186 | kallithea.model.meta.Session.remove() |
|
188 | 187 | |
|
189 | 188 | |
|
190 | hooks.register('configure_new_app', setup_configuration) | |
|
189 | tg.hooks.register('configure_new_app', setup_configuration) | |
|
191 | 190 | |
|
192 | 191 | |
|
193 | 192 | def setup_application(app): |
@@ -211,4 +210,4 b' def setup_application(app):' | |||
|
211 | 210 | return app |
|
212 | 211 | |
|
213 | 212 | |
|
214 | hooks.register('before_config', setup_application) | |
|
213 | tg.hooks.register('before_config', setup_application) |
General Comments 0
You need to be logged in to leave comments.
Login now